Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
Closed

CSV plugin: support JSON encoded geometries #1392

springmeyer opened this issue Aug 16, 2012 · 0 comments
Milestone

Comments

@springmeyer
Copy link
Member

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
Projects
None yet
Development

No branches or pull requests

1 participant