On Mon, Nov 1, 2010 at 8:14 AM, Robert Buckley <[email protected]> wrote: > Hi, > > as part of my project i would like to create a webpage offering metadata and > the opportunity to download in different formats...kml,shp etc. > > Could anyone please give me some advice on how to do this? would it be a > simple matter of applying this to an htmk link... > > http://ADDRESS:8080/geoserver/wms/FORMAT?layers=WORKSPACE:LAYER > > I´m a bit confused whether that should be wms or wfs in the link.
WFS for GML, shapefile, geojson. Just use the "GML" link from the preview page, remove the "maxFeatures" element and change/set the outputFormat. WMS for KML instead: again, get the preview link for openlayers and change the mime type to the kml one (don't remember it by heart, but you can find it in the WMS capabilities document). Mind, big KML files will probably make Google Earth choke. If you want even more format options you can install ogr2ogr and configure the ogr2ogr output format (e.g., you can provide unstyled kml with full attributes inside, dxf, mapinfo, etc). Cheers Andrea ----------------------------------------------------- Ing. Andrea Aime Senior Software Engineer GeoSolutions S.A.S. Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584962313 fax: +39 0584962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ----------------------------------------------------- ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
