[gdal-dev] Elasticsearch arrays

nick.peihl at gmail.com nick.peihl at gmail.com
Wed Sep 30 07:56:27 PDT 2020


Hi Lewis, I’m guessing the Elasticsearch driver does not handle nested geopoints. I suggest opening an issue on the GDAL GitHub repo. 

> On Sep 29, 2020, at 12:26 AM, Lewis Clark <lclark at genasys.com> wrote:
> 
> 
> In my Elasticsearch index I have an array of locations that I can’t seem to access with OGR.
>  
> In the following example I can see my geopoint “lkl” but not “locations.geometry”.
> Anything I’m missing here?
>  
> {
>    "_index":"targets",
>    "_type":"_doc",
>    "_id":"uVIWaHQBsLn3fGwYUuv-",
>    "_version":7,
>    "_score":1,
>    "_source":{
>       "number":"123456778",
>       "email":"xxx at yyy.com",
>       "lkl":"-37.81288283067835,144.96384429905447",
>       "locations":[
>          {
>             "name":"Home",
>             "geometry":"-37.81288283067835,144.96384429905447",
>             "id":1,
>          },
>          {
>             "name":"Work",
>             "geometry":"-37.96492031820528,144.7073221201426",
>             "id":2,
>          }
>       ],
>  
>       "id":"uVIWaHQBsLn3fGwYUuv-"
>    }
> }
>  
> ogrinfo  ES:http://localhost:9200 -sql 'select * from targets'
>  
> OGRFeature(targets):1
>   _id (String) = uVIWaHQBsLn3fGwYUuv-
>   email (String) = xxx at yyy.com
>   number (String) = 123456778
>  lkl = POINT (144.963844299054 -37.8128828306783)
>  
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200930/7c6895a0/attachment-0001.html>


More information about the gdal-dev mailing list