Maps, Nested Arrays, Geojson and Kibana

Hello Guys,

I'm facing trouble to implement a map that reads data from an index with documents like:

{
   "name": "Uncle Bob Farm",
   "geo":[
      {
        "area": 10,
         "geoJson": {
                "type": "MultiPolygon",
                "coordinates": [
                  [
                    [
                      [
                        -48.94664341287877,
                        -26.659539686978484
                      ],
                      [
                        -48.946374692073086,
                        -26.65953713216144
                      ],
           ...

Well, I tried to search the index, and run vega flatten transform... It did not work.

Is there any way to debug the vega execution?

Thank you

@nyuriks could you help out here, please. You know the debug possibilities the best.

Thank you @timroes. Actually I found the specific information on kibana docs. Thank you again.

1 Like

@diogopontual does your document contain multiple geojson objects (geo is a list of objects)? While i think this is a bit strange because geojson itself could contain multiple features with properties, you could use flatten on the geo field to create individual entries. Geojson can then be used directly by geopath transformation.

To debug, see https://www.elastic.co/guide/en/kibana/6.x/vega-debugging.html for in-depth details. You can view what your data looks like in the browser's debugger. Hope this helps.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.