We serve shapefile data to the public using Geoserver through .zip files
generated on Geoserver. When we upload the data to the data directory, the
.shp.xml[metadata] comes with all the other files included in the shapefile.
When we download the layer from Geoserver, the .xml file isn't included. Is
there any way to include this in the Shape-Zip file? We'd like the metadata
to go with the files so it appears in the client's GIS software.
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/XML-on-Geoserver-tp5033501.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On Mon, Feb 11, 2013 at 5:40 PM, Andy Akins <surveytech@anonymised.com> wrote:
We serve shapefile data to the public using Geoserver through .zip files
generated on Geoserver. When we upload the data to the data directory, the
.shp.xml[metadata] comes with all the other files included in the shapefile.
When we download the layer from Geoserver, the .xml file isn’t included. Is
there any way to include this in the Shape-Zip file? We’d like the metadata
to go with the files so it appears in the client’s GIS software.
That xml file is not part of the original shapefile specification, it’s something that
ESRI added along the way.
I don’t believe there are specs on how to build said file, the wikipedia page
states that a possibility is ISO 19115:
http://en.wikipedia.org/wiki/Shapefile
Theoretically speaking, if the data source is a another shapefile with said metadata
one could just copy over said file.
But if not, then one would have to write code to build the xml file from scratch,
I guess, leveraging the few metadata information we do have available in GeoServer
(such as, title, description, metadata links, and possibly a list of fields in the shapefile)
In both cases it’s code that’s yet to write, but if someone wants to do it, I believe patches
in that direction would be welcomed.
Cheers
Andrea
–
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it