koop-provider-geonode
v0.1.0
Published
An experimental Koop provider for GeoNode
Maintainers
Readme
koop-provider-geonode
An experimental Koop provider for GeoNode
Installation
With npm
npm install koop-provider-geonodeWith Koop CLI
koop add provider koop-provider-geonodeHow to use
This provider uses the host and id parameter in its request, for example,
/geonode/rest/services/:host/:id/FeatureServer/0The host parameter is the name of the target GeoNode service. This can be configured in the Koop app configuration (usually in config/*.json)
{
// all configuration for this provider must be in the "geonodeProvider" namespace
"geonodeProvider": {
"hosts": {
// this is the host name you would use in the Koop request URL
"themimu": {
// REQUIRED the GeoNode service URL
"url": "http://geonode.themimu.info",
// OPTIONAL the ID field for the feature
"idField": "OBJECTID"
}
}
}
}The id parameter is the dataset id from the GeoNode. This can be found in the URL of a GeoNode layer. For example,
http://geonode.themimu.info/layers/geonode:amyotha_hluttaw_2020is the URL for the layer geonode:amyotha_hluttaw_2020 in the service.
Therefore, this layer can be read from the Koop request URL
/geonode/rest/services/themimu/geonode:amyotha_hluttaw_2020/FeatureServer/0How it works
The provider utilizes the GeoNode WFS GeoJSON ouput to get the layer data and the GeoNode REST API to get the layer metadata.
License
MIT
