Tag Info

New answers tagged

1

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 ...


1

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 ...


2

--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=128.178.12.34 database=myDatabase user=myUsername password=myPassword Furthermore, keep in mind that restaurants can also be modelled as closed ...


1

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?


1

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 ...


0

The OSM wiki lists some more tools for converting shape files to .osm. Maybe try another one?


0

Have you tried this? Shp2OSM & PG2OSM You may need one step in Postgre ...


0

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