Ref to this: http://forum.openseamap.org/viewtopic.php?id=2060 and this: How to extract primary and secondary roads from OSM data? and this: http://wiki.openstreetmap.org/wiki/Seamarks/Seamark_Objects

I need to import all seamarks from my OSM planet data to my PostgreSQL OSM database, but I can't find the "seamark:type=*" tag in osm2pgsql default.style file.

Can someone show me an example line to write into default style (or osmosis parameter) to import this kind of data to PostgreSQL?

1 Answer 1


Found it:

osmosis --read-pbf south-america-latest.osm.pbf --tag-filter accept-nodes seamark:type=* --write-xml seamarks.osm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.