osmcoastline_filter1
Filter coastline data from openstreetmap file
Usage
osmcoastline_filter --output=OUTPUT_FILE
INPUT-FILE
osmcoastline_filter --help
Overview
osmcoastline_filter is used to filter all nodes and ways needed for building the coastlines from an OSM planet. The data is written to the output file in PBF format.
This output file will be a lot smaller (less than 1%) than the original planet file, but it contains everything needed to assemble the coastline and land or water polygons.
If you are playing around or want to run osmcoastline several times with different parameters, run osmcoastline_filter once first and use its output as the input for osmcoastline.
osmcoastline_filter can read any file format supported by libosmium (in particular this is PBF, XML, and OPL files), but write only PBF files. PBF files are much smaller and faster to read and write than XML files. The output file will first contain all ways tagged “natural=coastline”, then all nodes used for those ways (and all nodes tagged “natural=coastline”). Having the ways first and the nodes later in the file is unusual for OSM files, but the osmcoastline and osmcoastline_ways programs work fine with it.
Options
-
-f, --format -
Set output format options (default: pbf).
-
-h, --help -
Display usage information and exit.
-
-o, --output=OSMFILE -
Where to write output (default: none).
-
-v, --verbose -
Enable verbose output.
-
-V, --version -
Display program version and license information.
Examples
Run it as follows:
-
osmcoastline_filter -o coastline-data.osm.pbf planet.osm.pbf
Contact
If you have any questions or want to report a bug, please go to https://osmcode.org/contact.html
Releases
5 releases since Debian 9 (Stretch); the text changed 4 times.
--format since Debian 12 (Bookworm);
--help since Debian 12 (Bookworm);
--output since Debian 12 (Bookworm);
--verbose since Debian 12 (Bookworm);
--version since Debian 12 (Bookworm);
-V since Debian 12 (Bookworm);
-f since Debian 12 (Bookworm);
-h since Debian 12 (Bookworm);
-o since Debian 12 (Bookworm);
-v since Debian 12 (Bookworm).