orb icon indicating copy to clipboard operation
orb copied to clipboard

ExtraMember concept but for GeoJSON Features

Open jjcfrancisco opened this issue 10 months ago • 2 comments

It would be great to be able to have ExtraMember concept for a GeoJSON feature. This is also in line with the GeoJSON specification https://www.rfc-editor.org/rfc/rfc7946#section-5.

jjcfrancisco avatar Apr 04 '24 18:04 jjcfrancisco

Is "Foreign/extra members in a feature collection" not what you need?

https://github.com/paulmach/orb/tree/master/geojson#foreignextra-members-in-a-feature-collection

paulmach avatar Apr 06 '24 17:04 paulmach

Thanks for the quick response. I meant at the Feature level so I could end up with a GeoJSON like this (note the new key myNewFeature):

{ "type": "FeatureCollection",
  "generator": "myapp",
  "timestamp": "2020-06-15T01:02:03Z",
  "features": [
    { "type": "Feature",
      "myNewFeature": "blah",
      "geometry": {"type": "Point", "coordinates": [102.0, 0.5]},
      "properties": {"prop0": "value0"}
    }
  ]
}

jjcfrancisco avatar Apr 07 '24 09:04 jjcfrancisco