Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

CSV plugin: support JSON encoded geometries #1392

Closed
springmeyer opened this Issue Aug 16, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

springmeyer commented Aug 16, 2012

In addition to detecting lon/lat columns of point coordinates, the CSV plugin can also currently auto-detect any column named wkt and attempts to parse as WKT encoded geometries.

We can do the same for GeoJSON.

The tricky part will be supporting various json row quoting flavors.

We should support at least these forms:

"{\"type\":\"Point\",\"coordinates\":[30.0,10.0]}" // escaped "
'{"type":"Point","coordinates":[30.0,10.0]}' // single quotes no need for escaping "
"{""type"":""Point"",""coordinates"":[30.0,10.0]}" // filebakery.com style ""

Downstream issue: mapbox/tilemill#1618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment