How to read foreign members in GeoJSON?
When reading this file https://github.com/johan/world.geo.json/blob/master/countries.geo.json, I wanna keep the "id" information. When I read it using magellan, I currently get only the following columns: point, polyline, polygon, metadata, and valid. None of these contain the id information. If the id would be inside properties in the source file, then there would be no problem, metadata would contain the id when reading the geojson. Am I missing something? How do I read information from outside the "properties" key?
Thank you in advance!
@Perados , The GeoJSON spec here, https://tools.ietf.org/html/rfc7946#section-1.3 defines these things like ids as foreign members. We don;t support them in Magellan right now. I am in the process of refactoring GeoJSON support to make it an extension of JSON, in which case we might be able to support foreign members as well. I dont have a timeline on this yet but likely in a couple of weeks
Awesome, thanks! In the mean time, a workaround is to modify the source geojson file to include the foreign members inside "properties", so no worries.