I wanted to upload the OSM file from my local machine to server using osm2pgsql, but the data is not imported.
I have just created the database s1(no table), do I need to create the table also, if yes how?
My osm2pgsql query
osm2pgsql -c -d osm -U s1 --password xx -k -H yy /home/g/Downloads/niedersachsen-latest.osm.pbf pbf -r -S /home/g/default.style -s
I am getting an error
Osm2pgsql failed due to ERROR: Unknown file format '-S'.
-r pbf
)! write that command more carefully. and check for unnecessary spaces.