Closed ccancellieri closed 2 weeks ago
The code in https://github.com/geopython/pygeoapi/blob/f978d0a1f6d9628da24348975747d9e0e21c4ef9/pygeoapi/provider/elasticsearch_.py#L124 is "double nesting" properties of the mappings, not the actual GeoJSON data.
The test data attached in this is of a feature collection, not a feature. From the docs:
To publish an Elasticsearch index, the following are required in your index:
indexes must be documents of valid GeoJSON Features
index mappings must define the GeoJSON geometry as a geo_shape
Hi I'm having problems with the from the ElasticSearch provider not finding the 'properties' key (nested two times, see link below) in the source data dict.
https://github.com/geopython/pygeoapi/blob/f978d0a1f6d9628da24348975747d9e0e21c4ef9/pygeoapi/provider/elasticsearch_.py#L124C17-L124C80
The source data from ElasticSearch has been loaded using Kibana and consists in the attached geojson.json
The code which is now working is below, but I'm wondering why if it was intentional and if I'm doing something wrong: