New answers tagged osmosis
Frederik Ramm answered on help.openstreetmap.org (edited by SomeoneElse): --merge can only merge two pipes, not more; you must use two instances of --merge to merge three pipes. Try this: osmosis \ --read-pbf switzerland.osm.pbf --tf accept-nodes sport=* --tf accept-ways sport=* --tf reject-relations \ --read-pbf file=switzerland.osm.pbf --tf ...
The bbox for osmosis should have the order left - right - top - bottom. Note that West of Greenwich has to be negative. Alternatively, you can write something like --bb left=30. right=34. bottom=53. top=57. to avoid any misunderstanding. See http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.44#--bounding-box_.28--bb.29 EDIT The Map-Writer ...
--write-pgsql wants to talk to a Postgis database. You have not specified any database connection for that task, e.g.: osmosis --read-pbf file=switzerland.pbf --tf accept-nodes shop=supermarket --write-pgsql host=188.8.131.52 database=myDatabase user=myUsername password=myPassword Furthermore, keep in mind that restaurants can also be modelled as closed ...
Try this post: How to manage the osmosis command line? Pay attention to comments where I solved some troubles. Here I have some tricks too: How to extract primary and secondary roads from OSM data?
Converting OSM to PBF is probably not necessary, most tools that can read PBFs can also read OSM XML. If you do need to read the file with osmosis, the issue here is that ogr2osm by default generates files that can be loaded in JOSM and merged with existing OSM data. These files have no timestamp or version attributes as well as having negative IDs, while ...
The OSM wiki lists some more tools for converting shape files to .osm. Maybe try another one?
Have you tried this? Shp2OSM & PG2OSM You may need one step in Postgre ...
The .osm file you create with the script does not have version/user/timestamp attributes. Osmosis does not like that. I guess you have to look for other ways to get your map file. I'm not sure how you want to do the last step anyway.
Top 50 recent answers are included