How can I convert a set of ShapeFiles to an OSM file?
3 Answers
You can do it with JOSM + OpenData plugin. With this extension JOSM can open SHP (4326) than you can save it as OSM file
-
1For repeated needs ogr2osm is more easy to use in scripts wiki.openstreetmap.org/wiki/Ogr2osm. Sep 7, 2014 at 20:50
-
I tried to use the OpenData plugin to convert a 600mb shape file but it looks like there is a memory leak in the plugin.– skubskiJan 15, 2021 at 8:23
-
1Actually, turned out that it required 20GB of memory to open aforementioned file. JOSM became unresponsive, laggy at best, after it finally processed my .shp file. This is an unacceptable tool / method to convert .shp files into .osm files.– skubskiJan 15, 2021 at 14:16
-
I agree with @skubski; JOSM is incredibly sluggish ans slow and sucks memory. Another tools should be used.– TedApr 30 at 8:59
shp-to-osm.jar has a simple configuration file to translate shapefile attributes to SOM key-value pairs
On the OSM Wiki Import Page you find an exhautive list of tools, that can convert shapefiles to an OSM file (All above mentioned tools are included).