OSMCOASTLINE_FILTER(1)
π osmcoastline_filter β the manual page, but make it cute π
okay bestie, gather round, because this is osmcoastline_filter(1) and she is lowkey a superstar. β¨
π NAME π
osmcoastline_filter β filter coastline data from OpenStreetMap file
π SYNOPSIS π
osmcoastline_filter --output=OUTPUT_FILE INPUT-FILE
osmcoastline_filter --help
π DESCRIPTION π
so like, osmcoastline_filter is the girl whose whole job is filtering all nodes and ways needed for building the coastlines out of an OSM planet. she takes that giant planet file, does her little sieve moment, and writes the good stuff out to the output file in PBF format. πΈ
and the glow-up?? the output file is gonna be a lot smaller β less than 1% of the original planet file. not me gasping. π but fr fr, even though she's tiny she contains everything needed to assemble the coastline and the land or water polygons. small but mighty, main character energy, periodt. π
if you're just playing around, or you wanna run osmcoastline several times with different parameters, the move is: run osmcoastline_filter once first, then use its output as the input for osmcoastline. saves you so much time bestie, iykyk.
now, reading β she can read any file format supported by libosmium (in particular this is PBF, XML, and OPL files). but writing? only PBF files. that's the rule. and honestly it's a good rule because PBF files are much smaller and faster to read and write than XML files. slay. π₯
and here's the quirky bit that makes her unique π« the output file will first contain all ways tagged natural=coastline, and then all nodes used for those ways (plus all nodes tagged natural=coastline too). so ways first, nodes later. that's unusual for OSM files, ngl, it's giving chaotic β but osmcoastline and osmcoastline_ways work fine with it. no cap. π«Ά
β¨ OPTIONS β¨
-f,--formatβ set output format options (default:pbf).-h,--helpβ display usage information and exit. your classic "help meeee" button π-o,--output=OSMFILEβ where to write output (default:none). yes bestie, you gotta tell her where to put it.-v,--verboseβ enable verbose output. she'll tell you what she's doing, and honestly? love that for her. π¦-V,--versionβ display program version and license information.
π EXAMPLES π
run it like this, okay:
osmcoastline_filter -o coastline-data.osm.pbf planet.osm.pbf
that's it. that's the whole vibe. iconic. β
π SEE ALSO π
osmcoastline(1),osmcoastline_ways(1)- Project page
- OSMCoastline in OSM wiki
π COPYRIGHT π
Copyright (C) 2012-2026 Jochen Topf <jochen@topf.org>. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
β οΈ yes bestie, NO WARRANTY β all caps, they mean it, don't come for her if something breaks. π
π CONTACT π
if you have any questions or want to report a bug, please go to <https://osmcode.org/contact.html>
π AUTHORS π
Jochen Topf <jochen@topf.org>.
okay that's the whole page!! π₯³ this was version 2.5.0 of OSMCOASTLINE_FILTER(1), and that's a wrap, bestie β go filter some coastlines, you're gonna eat. πβ¨π
π¦ where this page comes from
- ubuntu stonking: osmcoastline 2.5.0-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms