Skip to content

Commit

Permalink
Remove CKAN from docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Oct 15, 2024
1 parent c35565a commit abd4f14
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
66 changes: 33 additions & 33 deletions docker/pygeoapi.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,39 +194,39 @@ resources:
- predicate: dbp:timezone
object: '?time_zone'

reservoirs:
type: collection
title: New Mexico Reservoirs
description: This is a point coverage of dams in the New Mexico, which originally was derived from the national inventory of dams data base (U.S. Army Corps of Engineers, 1982)
keywords:
- pygeoapi
- ckan
- api
context:
- name: schema:name
description: schema:description
subjectOf: schema:subjectOf
links:
- type: application/html
rel: canonical
title: data source
href: https://catalog.newmexicowaterdata.org/mn_MN/dataset/new-mexico-reservoirs/resource/08369d21-520b-439e-97e3-5ecb50737887
hreflang: en-US
extents:
spatial:
bbox: [-109, 31, -103, 37]
crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
temporal:
begin: null
end: null
providers:
- type: feature
name: pygeoapi_plugins.provider.ckan.CKANProvider
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
# reservoirs:
# type: collection
# title: New Mexico Reservoirs
# description: This is a point coverage of dams in the New Mexico, which originally was derived from the national inventory of dams data base (U.S. Army Corps of Engineers, 1982)
# keywords:
# - pygeoapi
# - ckan
# - api
# context:
# - name: schema:name
# description: schema:description
# subjectOf: schema:subjectOf
# links:
# - type: application/html
# rel: canonical
# title: data source
# href: https://catalog.newmexicowaterdata.org/mn_MN/dataset/new-mexico-reservoirs/resource/08369d21-520b-439e-97e3-5ecb50737887
# hreflang: en-US
# extents:
# spatial:
# bbox: [-109, 31, -103, 37]
# crs: http://www.opengis.net/def/crs/OGC/1.3/CRS84
# temporal:
# begin: null
# end: null
# providers:
# - type: feature
# name: pygeoapi_plugins.provider.ckan.CKANProvider
# 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

intersector:
type: process
Expand Down
6 changes: 3 additions & 3 deletions tests/test_sitemap_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def test_sitemap_generator(body):
assert r.status_code == 200

sitemap = r.json()
assert len(sitemap) == 5
assert len(sitemap) == 4

common = sitemap.pop('common.xml')
assert len(common) == 3134
assert len(common) == 2646

root = xml.etree.ElementTree.fromstring(common)
assert all(i.tag == j.tag for (i, j) in zip(root, root.findall('url')))
Expand All @@ -79,7 +79,7 @@ def test_sitemap_no_features(body):
assert len(sitemap) == 1

common = sitemap.pop('common.xml')
assert len(common) == 3134
assert len(common) == 2646


def test_sitemap_zip(body):
Expand Down

0 comments on commit abd4f14

Please sign in to comment.