osm-lump-ways-0.2.0 is not a library.
Visit the last successful build:
osm-lump-ways-3.6.0
osm-lump-ways group OSM ways based on topology & shared tags
Answer questions about OSM data like:
- “What's the longest Main Street?”
- “How far can I drive on unpaved roads in this region?”
- “How long is the M1 motorway?”
- “Are these rivers connected?”
- “What's the river drainage basins?”
Usage
Generate river drainage basins
osm-lump-ways -i path/to/region-latest.osm.pbf -o region-rivers.geojson -f waterway=river
To group based on the river's name:
osm-lump-ways -i path/to/region-latest.osm.pbf -o region-rivers.geojson -f waterway=river -g name
To find long streets and assemble them into connected (Multi)LineStrings:
osm-lump-ways -i path/to/region-latest.osm.pbf -o region-rivers.geojson -f highway -g name
Installation
cargo install osm-lump-ways
Background
OSM linear features (eg roads, rivers, walls) are stored as way
object. The OSM tagging
model often requires one feature to
be mapped as many different ways. osm-lump-ways will assemble them all together.
Full Options
Run with --help to see all options.
Examples of usage
osm-river-basins- Your project here!
Copyright & Licence
Copyright 2023, GNU Affero General Public Licence (AGPL) v3 or later. See LICENCE.
Source code is on Github (osm-lump-ways).
The output data file(s) are a Derived Database of the OpenStreetMap database, and hence under the ODbL 1.0 licence, the same as the OpenStreetMap copyright, and contains data © OpenStreetMap contributors