| Property | @@ -37,8 +38,8 @@|||||
|---|---|---|---|---|---|
| ID | -{{ data.ID }} | +id | +{{ data.id }} | ||
| ID | +id | {% for k, v in data['features'][0]['properties'].items() %}{{ k }} {% endfor %} @@ -39,7 +39,7 @@ |
|---|---|---|
| {{ ft.ID }} | +{{ ft.id }} | {% for k, v in ft['properties'].items() %}{{ v }} | {% endfor %} @@ -82,7 +82,7 @@ var geojson_data = {{ data['features'] |to_json }}; var items = new L.GeoJSON(geojson_data, { onEachFeature: function (feature, layer) { - var html_ = '' + feature.ID + ''; + var html_ = '' + feature.id + ''; layer.bindPopup(html_); } }); diff --git a/tests/pygeoapi-test-openapi.yml b/tests/pygeoapi-test-openapi.yml index 13d65ae..acd9014 100644 --- a/tests/pygeoapi-test-openapi.yml +++ b/tests/pygeoapi-test-openapi.yml @@ -116,7 +116,7 @@ paths: 200: description: successful operation 400: - description: Invalid ID supplied + description: Invalid id supplied 404: description: not found summary: Get feature collection metadata @@ -134,7 +134,7 @@ paths: 200: description: successful operation 400: - description: Invalid ID supplied + description: Invalid id supplied 404: description: not found summary: Get Observations features @@ -150,10 +150,10 @@ paths: 200: description: successful operation 400: - description: Invalid ID supplied + description: Invalid id supplied 404: description: not found - summary: Get Observations feature by ID + summary: Get Observations feature by id tags: - obs /conformance: @@ -181,7 +181,7 @@ paths: 200: description: successful operation 400: - description: Invalid ID supplied + description: Invalid id supplied 404: description: not found summary: Get process metadata @@ -210,7 +210,7 @@ paths: 200: description: successful operation 400: - description: Invalid ID supplied + description: Invalid id supplied 404: description: not found summary: Process Hello World process execution diff --git a/tests/test_csv__formatter.py b/tests/test_csv__formatter.py index a8f4827..65681db 100644 --- a/tests/test_csv__formatter.py +++ b/tests/test_csv__formatter.py @@ -51,7 +51,7 @@ def fixture(): 'foo': 'bar', 'title': None, }, - 'ID': 48693 + 'id': 48693 }] } diff --git a/tests/test_csv__provider.py b/tests/test_csv__provider.py index a01a3a4..54ef210 100644 --- a/tests/test_csv__provider.py +++ b/tests/test_csv__provider.py @@ -68,7 +68,7 @@ def test_query(fixture, config): assert len(results['features']) == 5 assert results['numberMatched'] == 5 assert results['numberReturned'] == 5 - assert results['features'][0]['ID'] == '371' + assert results['features'][0]['id'] == '371' assert results['features'][0]['properties']['value'] == '89.9' assert results['features'][0]['geometry']['coordinates'][0] == -75.0 @@ -76,11 +76,11 @@ def test_query(fixture, config): results = p.query(limit=1) assert len(results['features']) == 1 - assert results['features'][0]['ID'] == '371' + assert results['features'][0]['id'] == '371' results = p.query(startindex=2, limit=1) assert len(results['features']) == 1 - assert results['features'][0]['ID'] == '238' + assert results['features'][0]['id'] == '238' assert len(results['features'][0]['properties']) == 3 @@ -96,5 +96,5 @@ def test_get(fixture, config): assert results is None result = p.get('964') - assert result['ID'] == '964' + assert result['id'] == '964' assert result['properties']['value'] == '99.9' diff --git a/tests/test_elasticsearch__provider.py b/tests/test_elasticsearch__provider.py index a9c2054..8a6c07d 100644 --- a/tests/test_elasticsearch__provider.py +++ b/tests/test_elasticsearch__provider.py @@ -47,7 +47,7 @@ def test_query(config): assert len(results['features']) == 10 assert results['numberMatched'] == 242 assert results['numberReturned'] == 10 - assert results['features'][0]['ID'] == 6691831 + assert results['features'][0]['id'] == 6691831 assert results['features'][0]['properties']['nameascii'] == 'Vatican City' results = p.query(properties=[('nameascii', 'Vatican City')]) @@ -57,11 +57,11 @@ def test_query(config): results = p.query(limit=1) assert len(results['features']) == 1 - assert results['features'][0]['ID'] == 6691831 + assert results['features'][0]['id'] == 6691831 results = p.query(startindex=2, limit=1) assert len(results['features']) == 1 - assert results['features'][0]['ID'] == 1559804 + assert results['features'][0]['id'] == 1559804 results = p.query(sortby=[{'property': 'nameascii', 'order': 'A'}]) assert results['features'][0]['properties']['nameascii'] == 'Abidjan' @@ -89,5 +89,5 @@ def test_get(config): assert results is None result = p.get('3413829') - assert result['ID'] == 3413829 + assert result['id'] == 3413829 assert result['properties']['ls_name'] == 'Reykjavik' diff --git a/tests/test_geojson_provider.py b/tests/test_geojson_provider.py index 676e2dd..59d8022 100644 --- a/tests/test_geojson_provider.py +++ b/tests/test_geojson_provider.py @@ -62,7 +62,7 @@ def test_create(fixture, config): p = GeoJSONProvider(config) new_feature = { 'type': 'Feature', - 'ID': '123-456', + 'id': '123-456', 'geometry': { 'type': 'Point', 'coordinates': [0.0, 0.0]},