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

Output pathway for DataFrame to GeoJSON #88

Open
jpolchlo opened this issue Apr 30, 2019 · 3 comments
Open

Output pathway for DataFrame to GeoJSON #88

jpolchlo opened this issue Apr 30, 2019 · 3 comments

Comments

@jpolchlo
Copy link
Contributor

After processing OSM or other inputs into a DataFrame of JTS geometry and added attributes, we may find it useful to produce line-delimited GeoJSON output. Some workflows will prefer this to vectortile output (or for those users who would prefer to use Tippecanoe for VT generation). We should explore how to create such an output pathway.

@mojodna
Copy link
Collaborator

mojodna commented Apr 30, 2019

This may be as simple as using df.toGeoJSON and writing 'value to a text file.

Sample row:

{"type": "Feature", "geometry": {"type":"Point","coordinates":[-83.1545467,42.2953661]}, "properties":{   "_type": "1",  "id": "18833581",  "tags": "Map(source -> PGS, created_by -> r_coastlines)",  "changeset": "73729",  "updated": "2007-05-30 10:34:26.0",  "validUntil": "null",  "visible": "true",  "version": "1",  "minorVersion": "0"}}

@mojodna
Copy link
Collaborator

mojodna commented Apr 30, 2019

Bummer that numbers / booleans are converted to strings; maybe that should be addressed on the GeoMesa side.

@mojodna
Copy link
Collaborator

mojodna commented Apr 30, 2019

@CloudNiner CloudNiner removed their assignment Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants