I have a GeoJSON with some points of interest that I would like to update to the Open Street Map project.
I cannot find documentation on Wiki to do so. Is it possible to import points to OSM from file?
Maybe I need to convert it into another format using ogr2ogr
but I have no idea to start.
-
2Welcome to gis.stackexchange! Please note that a good question on this site is expected to show some degree of research on your part, i.e. what you have tried and - if applicable - code so far. For more info, you can check our faq.– underdarkCommented Oct 15, 2017 at 19:22
4 Answers
The JOSM editor has a plugin called geojson that is able to open GeoJSON files. Install the plugin in JOSM and import the data as a layer.
-
1That plugin seems to be discontinued since 2020, and new support still pending: josm.openstreetmap.de/ticket/2372 .– RichlvCommented Feb 26, 2023 at 18:35
-
The plugin project: github.com/JOSM/geojson doesn't have any forks. Commented Apr 24, 2023 at 23:25
There are two parts to "is it possible" - one is "is it technically possible" but the other is the process that you need to go through to get community approval for the import.
That's documented in some detail at https://wiki.openstreetmap.org/wiki/Import and https://wiki.openstreetmap.org/wiki/Import/Guidelines . Among other things you'll need to discuss what you plan to do with the OSM community and show that the licence if any is appropriate for use within OSM. You'll also need to merge the data with anything already in OSM.
-
1I want to tag some installations (Air Quality Measurement Sites) I manage in order to update meta information. Commented Oct 16, 2017 at 12:42
-
Thanks - I'd still read through and follow wiki.openstreetmap.org/wiki/Import/Guidelines though. I doubt that the licence will be an issue if you're in charge of it, but it'd be worth it to get the tags right first time and make sure that the data is conflated properly. Commented Oct 17, 2017 at 13:22
Sadly, the JOSM plugin geojson isn't available.
Instead, you can use this node CLI: https://github.com/tyrasd/geojsontoosm
$ npm install -g geojsontoosm
$ geojsontoosm file.geojson > file.osm
And the OSM file loads readily into JOSM.
There's also a Python CLI https://github.com/roelderickx/ogr2osm which looks much more capable. It requires a package called gdal
to be installed, which takes a long time.
-
In addition, the answer is wrong because imposm is converting data from OSM format into GIS format but the goal it to do the opposite. Commented Oct 16, 2017 at 8:33