I am trying to convert a GIS LINE shapefile into a .osm.pbf file on Windows.
I've done some research on the topic and some tools that kept coming out are:
- Merkaator
- shp2osm – which deals mostly with point shapefile
- shape2osm.py – which keeps bringing up an error with importing * elementtree.SimpleXMLWriter
But nothing seems to be working.
Best Answer
According to https://wiki.openstreetmap.org/wiki/Shapefiles you can try JOSM with the OpenData plugin to open a Shapefile.
https://wiki.openstreetmap.org/wiki/Software_comparison/Import_a_shapefile#Advanced:_Conversion_tools lists various other tools for converting a shapefile to OSM data:
Please don't forget that you are not allowed to import a shapefile directly into OSM! See the Import Guidelines for details.