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

Basic GeoJSON output #52

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Basic GeoJSON output #52

wants to merge 2 commits into from

Conversation

lehmann-4178656ch
Copy link
Member

This PR adds basic GeoJSON output to osm2rdf for the hasGeometry predicate. Other predicates still return only WKT.

* Make simplification explicit step
* Remove writeBox functions
* Add explicit geojson and wkt conversion functions
@patrickbr
Copy link
Member

patrickbr commented Apr 3, 2023

Thanks Axel, looks good. As discussed in person, I would prefer an additional option to enable the GeoJSON dump, with the default being that GeoJSON dump is disabled (to preserve the current behavior).

It would be nice if we could also have WKB (binary WKT, "well-known binary") as a serialization format and our "own" compressed binary format (for loading qlever-petrimaps). This "NSWKB" (not so well-known binary) format could be based on 32bit floats (instead of 64bit as the standard requires) and stored as a base64 string to safe space. This would completely remove the need for WKT parsing in qlever-petrimaps.

@lehmann-4178656ch
Copy link
Member Author

Another suggestion for the format name would be "LKB" (little-known binary), this would keep the name smaller 😉

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

Successfully merging this pull request may close these issues.

2 participants