Transform GeoJSON object to a realm object

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

      Problem

      I am working with GeoJSON data, here is an example:

      `"outline": {
      "type": "FeatureCollection",
      "features": [
      {
      "type": "Feature",
      "geometry":

      { "type": "Polygon", "coordinates": [ [ [ 2.6581091091385147, 49.44587585244173 ], [ 2.6632589504471085, 49.4464059894905 ], [ 2.6648897335281636, 49.445317807250234 ], [ 2.6633018657913468, 49.443280888399926 ], [ 2.6581091091385147, 49.44587585244173 ] ] ] }

      ,
      "properties":

      { "name": "An example" }

      }
      ]
      }`

      I want to save this data as a realm object of type Outline. I have tried to create an embedded model, i.e, Geometry > Feature > Outline, but the validation of realm schema failed when it came to "coordinates". It seems that realm does not support schema property of array of array of array.

      Solution

      Are there any alternatives to deal with GeoJSON data?

      How important is this improvement for you?

      I'd like to see it, but have a workaround

            Assignee:
            Kenneth Geisshirt (Inactive)
            Reporter:
            Unito Sync Bot
            Archiver:
            Marc Greenfield

              Created:
              Updated:
              Resolved:
              Archived: