[gdal-dev] GDAL and ElasticSearch 5.0

Kralidis, Tom (EC) tom.kralidis at canada.ca
Mon Nov 21 07:51:42 PST 2016


Jukka: I'm testing the same, for starters it would be valuable to identify which ES
version(s) are supported in [1].

..Tom

[1] http://www.gdal.org/drv_elasticsearch.html


From: gdal-dev [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Rahkonen Jukka (MML)
Sent: 21 November 2016 10:48
To: 'gdal-dev at lists.osgeo.org' (gdal-dev at lists.osgeo.org)
Subject: [gdal-dev] GDAL and ElasticSearch 5.0

Hi,

I tried to test new ElasticSearch version with no success and I wonder what is wrong. My command and debug data follows.


ogr2ogr -f "ElasticSearch" http://localhost:9200 
-s_srs epsg:3067 -t_srs epsg:4326 test_es50.shp --debug on

GDAL: GDALOpen(test_es50.shp, this=0000000002454920) succeeds as ESRI Shapefile.
HTTP: Fetch(http://localhost:9200)
HTTP: These HTTP headers were set: Accept: text/plain, application/json
GeoJSON: No valid GeoJSON data found in source 'http://localhost:9200'
GDAL: GDALDriver::Create(ElasticSearch,http://localhost:9200,0,0,0,Unknown,00000
00000000000)
HTTP: Fetch(http://localhost:9200/_stats)
HTTP: Fetch(http://localhost:9200/test_es50)
HTTP: Fetch(http://localhost:9200/test_es50)
HTTP: These POSTFIELDS were sent:
HTTP: These HTTP headers were set: Content-Type: application/x-javascript;
charset=UTF-8
ERROR 1: HTTP error code : 400
ERROR 1: No handler found for uri [/test_es50] and method [POST]
ERROR 1: Terminating translation prematurely after failed
translation of layer test_es50 (use -skipfailures to skip errors)
GDAL: GDALClose(http://localhost:9200, this=00000000024545E0)
GDAL: GDALClose(test_es50.shp, this=0000000002454920)

-Jukka Rahkonen-


More information about the gdal-dev mailing list