-
Notifications
You must be signed in to change notification settings - Fork 5
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
GeoJSON export #20
Comments
A workaround is to transform the JSON into GeoJSON on the command line using a tool like jq '{type: "FeatureCollection", features: map({type: "Feature", properties: {name: .name, type: .layer, "marker-size": "small", "marker-color": ("#" + .rgb)}, geometry: {type: "Point", coordinates: (.coordinates | match("Point\\(([-.\\d]+) ([-.\\d]+)\\)").captures | map(.string | tonumber))}})}' query.json > query.geojson |
@nonoumasy pointed out that csv2geojson is another command-line tool that can transform Sophox’s CSV output into GeoJSON. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Download menu offers JSON as an export format, but that format represents geodata as WKT strings, whereas many OSM-related tools consume GeoJSON. It would be handy to be able to export GeoJSON directly from Sophox. Like the Map view, the features could come from the first WKT-formatted column, and all the other columns could become properties of those features.
The text was updated successfully, but these errors were encountered: