[gdal-dev] Loading GeoJSON to ES 7
Francesco Bartoli
xbartolone at gmail.com
Tue Mar 17 12:52:07 PDT 2020
Hi All,
I'm trying to investigate this issue https://github.com/geopython/pygeoapi/issues/379 in the pygeoapi project. I'm using an instance of ES7 and if I understand well the command below:
docker run --rm --network=host -u $(id -u ${USER}):$(id -g ${USER}) \
-v $(pwd):/data \
-e OGR_GEOJSON_MAX_OBJ_SIZE=500MB \
osgeo/gdal:alpine-small-latest \
ogr2ogr -lco INDEX_NAME=pygeoapi ES:localhost:9200 /data/tests/data/ne_110m_populated_places_simple.geojson
should create a Feature object in the index or am I wrong? Actually I don't have a geojson object:
{
"took": 3,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 243,
"relation": "eq"
},
"max_score": 1.0,
"hits": [
{
"_index": "pygeoapi",
"_type": "_doc",
"_id": "EfwD6nAB8v4-ZVfFzLGS",
"_score": 1.0,
"_source": {
"geonameid": 6691831.0,
"geometry": {
"type": "POINT",
"coordinates": [
12.453386545,
41.90328218
]
},
"scalerank": 8,
"natscale": 10,
"labelrank": 3,
"featurecla": "Admin-0 capital",
"name": "Vatican City",
"namepar": null,
"namealt": null,
"diffascii": 0,
"nameascii": "Vatican City",
"adm0cap": 1.0,
"capalt": null,
"capin": null,
"worldcity": 1.0,
"megacity": 0,
"sov0name": "Vatican (Holy Sea)",
"sov_a3": "VAT",
"adm0name": "Vatican (Holy See)",
"adm0_a3": "VAT",
"adm1name": "Lazio",
"iso_a2": "VA",
"note": null,
"latitude": 41.900012226400001,
"longitude": 12.4478083889,
"changed": 4.0,
"namediff": 0,
"diffnote": "Changed scale rank.",
"pop_max": 832,
"pop_min": 832,
"pop_other": 562430,
"rank_max": 2,
"rank_min": 2,
"meganame": null,
"ls_name": "Vatican City",
"ls_match": 1,
"checkme": 0,
"min_zoom": 7.0
}
},
...
}
Thanks,
Francesco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200317/09a216b3/attachment-0001.html>
More information about the gdal-dev
mailing list