GIScience / ors-map-client

Openrouteservice API web SPA client using VueJS, Vuetify and Vue2Leaflet
http://maps.openrouteservice.org
Apache License 2.0
105 stars 31 forks source link

GeoJSON download: Downloads .json rather than .geojson #413

Closed SColchester closed 3 months ago

SColchester commented 3 months ago

GeoJSON download: Downloads .json rather than .geojson

When downloading the isochrone results and choosing GeoJSON, expect to download a file with extension .geojson, instead file downloads but has incorrect extension .json that needs to be manually fixed to ensure that it loads correctly in other services like QGIS, uMap, JOSM etc.

ORS-download

TheGreatRefrigerator commented 3 months ago

Hi @SColchester

.json is a totally valid file ending for geojson files.

.geojson is often not matched to JSON files when viewing a file in an editor or other programs, which is why the .json is currently the default when downloading.

At least for QGIS i know that you can drag and drop a geojson-file.json in there without issues. I don't know about umap and JOSM, but as .json is a valid geojson file ending i'd rather say they should support it.

SColchester commented 3 months ago

@TheGreatRefrigerator amazing, thanks for clarifying! I feel like I should have known this 😄

uMap also has no problem with json files apparently! Seems like it is just a JOSM issue - will submit an issue to the team behind JOSM for that.