Ingesting data from CKAN into pygeoapi
- To ingest CKAN data you must be using the internetofwater/pygeoapi fork or another pygeoapi environment with the cgs-earth/pygeoapi-plugins package installed.
- Create a new section in the
local.config.yml
config file - Fill in the values for
data
(the domain of the CKAN endpoint),resource_id
(the CKAN resource id),id_field
(the id of each feature) andx_field
andy_field
(the location for the geometry)
Example
This is an example of just the provider section. Place this within a pre-existing collection
block in the .yml
file. For clarification on the general pattern of adding providers, read about the general pattern here.
local.config.yml
providers:
- type: feature
name: CKAN
data: https://catalog.newmexicowaterdata.org/api/3/action/datastore_search
resource_id: 08369d21-520b-439e-97e3-5ecb50737887
id_field: _id
x_field: LONDD
y_field: LATDD