diff --git a/docker/pygeoapi.config.yml b/docker/pygeoapi.config.yml index e43bc27..92effb6 100644 --- a/docker/pygeoapi.config.yml +++ b/docker/pygeoapi.config.yml @@ -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 diff --git a/tests/test_sitemap_process.py b/tests/test_sitemap_process.py index 13e4690..a35507c 100644 --- a/tests/test_sitemap_process.py +++ b/tests/test_sitemap_process.py @@ -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'))) @@ -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):