Downloading shape files, CSV, linking into Google Earth etc
The map server allows access to WGS 84 and NZTM projections and can also output in many different formats with:
https://io.weedmanager.nz/geo/wm/wfs/apikey/project_id?service=WFS&version=1.0.0&request=GetFeature&typeName=layer&outputFormat=format
Output formats:
GML2 |
|
GML3 |
|
Shapefile |
|
JSON |
|
JSONP |
|
CSV |
|
e.g. to get a shapefile of trap locations:
https://io.weedmanager.nz/geo/wm/wfs/apikey/project_id?service=WFS&version=1.0.0&request=GetFeature&typeName=trapnz-projects:my-projects-traps&outputFormat=shape-zip
KML (you can link this directly into Google Earth):
https://io.weedmanager.nz/geo/wm/wfs/apikey/project_id?service=WFS&version=2.0.0&request=GetFeature&typeName=trapnz-projects:my-projects-traps&outputFormat=application/vnd.google-earth.kml+xml
CSV:
https://io.weedmanager.nz/geo/wm/wfs/apikey/project_id?service=WFS&version=2.0.0&request=GetFeature&typeName=trapnz-projects:my-projects-traps&outputFormat=csv
You can also view features directly in OpenLayers:
https://io.weedmanager.nz/geo/wm/wfs//apikey/project_id?service=WMS&version=1.1.0&request=GetMap&layers=trapnz-projects:my-projects&bbox=174.94,-41.5,174.95,-41&width=708&height=768&srs=EPSG:4326&format=application/openlayers
Notes:
The WFS server is set to return a maximum of 10k features per request. If you have more that, you will need to use software (e.g. ArcGIS Pro, or QuantumGIS) to page requests, or include count
and startindex
parameters . See the WFS specification.
The shapefile format has a number of limitations - see the Geoserver documentation. Datetime fields are not supported - only the date will be included.