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

Wish: Download results as GeoJSON #1376

Open
tuukka opened this issue Jun 13, 2024 · 2 comments
Open

Wish: Download results as GeoJSON #1376

tuukka opened this issue Jun 13, 2024 · 2 comments

Comments

@tuukka
Copy link

tuukka commented Jun 13, 2024

Could GeoJSON be available directly from QLever instead of only via qlever-petrimaps? Now, it's an extra step and a bit hidden.

Also, the GeoJSON export could be closer to the CSV export, e.g. no question marks in the property names and no angle brackets in the URL values.

@hannahbast
Copy link
Member

@tuukka Thank you for the suggestion + good idea. When exactly should the result be exportable as GeoJSON?

@tuukka
Copy link
Author

tuukka commented Jun 13, 2024

I suppose "when the results have geometries". The current condition for the map button seems to be /wktLiteral/.test(result.res[0][columns.length - 1].

I wonder if there should be a warning when you choose to view the map or export the GeoJSON but there are result rows that do not contain valid WKT data. As the data isn't necessarily loaded in the UI, could it be the responsibility of the map / the export endpoint to return the warning?

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

2 participants