On Mon, Feb 11, 2013 at 5:40 PM, Andy Akins
<surveyt...@gibsoncounty-in.gov>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

-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==

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

-------------------------------------------------------
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to