magellan icon indicating copy to clipboard operation
magellan copied to clipboard

How to read foreign members in GeoJSON?

Open Perados opened this issue 8 years ago • 2 comments

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 avatar Aug 10 '17 15:08 Perados

@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

harsha2010 avatar Aug 10 '17 15:08 harsha2010

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.

Perados avatar Aug 10 '17 16:08 Perados