Map feeds

Weedmanager provides a range of map feeds in OGC (Open Geospatial Consortium) formats which can be linked directly into GIS tools such as ArcGIS, Google Earth and Google Maps, QuantumGIS etc. To access the feeds you first need to generate an API key.

Generating an API key

In the My account section of Weedmanager, you can generate an API key that’s associated with your user account. It can only be used for map feeds (which are read-only), and it can be changed any time by generating a new key, which will disable any previously used keys.

image-1726204685547.png

 

Accessing map feeds

Map feed addresses are in the format:

https://io.weedmanager.nz/geo/wm/wfs/apikey/project_id
and
https://io.weedmanager.nz/geo/wm/wfs/apikey/project_id

for WFS and WMS feeds respectively.

The Project ID is the last part of the URL when you select your project in Weedmanager.
i.e. when you select the project after logging in, the URL will look something like https://weedmanager.nz/group/123456, and in this case, the Project ID will be 123456.

Note: Some of the map feeds apply to all the projects you are a member of. If you are using those feeds, you still need to select a default project. It doesn’t matter which one.

So for a test user and project the WFS feed looks like this:
https://io.weedmanager.nz/geo/wm/wfs/35GElj7FEyGB-gpalO5ptgcEjxmNe7QaOiJNbEPZmSU/123456

(you must generate your own key under the My Account section of the Weedmanager website)

You can paste these URLs into your GIS system and it will show you the available layers.

The layers currently available are:

Notes

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

outputFormat=GML2

GML3

outputFormat=GML3

Shapefile

outputFormat=shape-zip

JSON

outputFormat=application/json

JSONP

outputFormat=text/javascript

CSV

outputFormat=csv

KML

outoutFormat=application/vnd.google-earth.kml+xml

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=wm:default-project-weeds-points&outputFormat=shape-zip

 

https://io.weedmanager.nz/geo/wm/wfs/apikey/project_id?service=WFS&version=2.0.0&request=GetFeature&typeName=wm:default-project-weeds-points&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=wm:default-project-weeds-points&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=wm:default-project-weeds-points&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.