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 <[email protected]> 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":"[email protected]",
>       "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) = [email protected]
>   number (String) = 123456778
>  lkl = POINT (144.963844299054 -37.8128828306783)
>  
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to