This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Best tool for shapefiles (incl. points and lines) to osm conversion

0

Hi folks, I have a self-tailored line shapefile from Mapzen and a self-generated point shapefile, which match perfectly after testing in QGIS. Now, I would like to convert both shapefiles into an OSM file, either .pbf or .xml

I found the link, but got confused which tool is better for such a conversion.

P.S.: I tried on Merkaartor on Windows, and all versions (0.18.2 and 0.18.3) cannot load my files.

Thank you very much for your time.

asked 07 Jun '17, 15:55

gchen36's gravatar image

gchen36
11112
accept rate: 0%

JOSM works!

(07 Jun '17, 17:55) gchen36

One Answer:

0

Hi

I can tell you the process for JOSM in Windows. Download and install JOSM. Open it. Go to Edit --> Preference --> Plugins Search for the "OpenData" plugin. Check the box beside it and press ok to download and install it. Drag and drop the shape file into JOSM and press Ctrl + S to save it as an OSM file. This OSM file itself is a XML file. Just change the .osm to .xml and you are good to go.

Check the below links for more:

https://gis.stackexchange.com/questions/177371/how-to-convert-osm-file-into-xml

https://wiki.openstreetmap.org/wiki/OSM_XML

answered 08 Jun '17, 05:52

mmahmud's gravatar image

mmahmud
63861125
accept rate: 3%

Source code available on GitHub .