On Thu, Feb 3, 2011 at 5:02 AM, sylvie fiat <kiki__fiat@anonymised.com> wrote:
Hi,
I am concerned about adding metadata file with shapefile as we distribute
public data with intellectual property.
I just read the thread
http://www.mail-archive.com/geoserver-devel@lists.sourceforge.net/msg11422.html
where some of you has been talking about it.
What I would like to do is modify SHAPE-ZIP format and add .shp.xml (or not)
taking it from MetadataURL in WMS Capabilities document.
I found this tutorial
http://geoserver.org/display/GEOSDOC/Create+your+own+Output+Format as a good
start but I'd appreciate some advices on the implementation:
I was planning to modify the template like this:
zip=${typename}
shp=${typename}${geometryType}
txt=wfsrequest
xml=${typename}
and then create a fonction to get the MetadataFile in the class
ShapeZipOutputFormat which would get the capabilities document from wms
service and than parse it to get the url and finally get the Metadata
document to add it to the zip file.
Theoritically it doesn't seems too hard, but it is the first time I'm diving
into Geoserver source code and I would appreciate some advices if you don't
mind.
I wanted to check also if you are not implementing it and if you would be
interested in my modification ?
Certainly sounds like an interesting modification to me.
The class you want to modify is probably:
http://svn.codehaus.org/geoserver/branches/2.1.x/src/wfs/src/main/java/org/geoserver/wfs/response/ShapeZipOutputFormat.java
As far as I know that xml file often contains many informatio that is found in
the feature type configuration, such are area of interest, projection, keywords,
title, abstract and so on.
Wondering, where are you planning to put the intellectual property information?
I guess you can just statically add it to the template.
Also wondering about the other WFS output formats. GML2 and GML3 are mandatory,
but I'm not really aware of a good place where to add the IP information.
And then we have CSV and GeoJSON, which are not standard, but built-in
nevertheless.
Nothing wrong with that, just thinking out loud and wondering about the fact
that people can just dodge the IP information by getting an output format
other than zipped shapefile.
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
mob: +39 333 8128928
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------