osp-filter-relations-types - Split input file based on relation types
osp-filter-relations-types [OPTIONS] OSM-FILE
Reads OSM data file and writes out an OSM file for each relation type
containing all relations of that type as well as their members (recursively).
The OSM output files are named after the type with suffix .osm.pbf. Because
the type could contain unprintable characters, all characters other than
a-z, A-Z, _ (underscore), - (hyphen), and : (semicolon) are printed as @.
Relation without type tag are stored in the file UNKNOWN.osm.pbf.
In addition a SQLite database relation-types.db is created in the output
directory containing a single table called types which contains a list
of types, the file basenames used and a count of relations of that type.
Doesn't yet handle relation members of relations correctly.
-h, --help : Show usage help.
-o, --output=DIR : Name of the output directory.
-q, --quiet : Quiet mode.
osp-filter-relations-types exits with exit code
0 ~ if everything went alright,
1 ~ if there was an error processing the data, or
2 ~ if there was a problem with the command line arguments.
The program needs to store which objects to include in which files. This needs 8 bytes per object.
- osp-filter-relations-and-members(1)