osm-waters allows you to get the resulting polygons from the intersection of OSM water bodies and your chosen geometries.
To install osm-wate.rs:
cargo install osm-waters
# Or if building from source:
cargo install --path .Go here to install Cargo.
Below are some examples on how to use osm-waters:
osm-waters --target my_target.geojson --water water_polygons.shp --output intersecting_geometries.geojsonosm-waters --target example.geojson --output intersecting_geometries.geojson --downloadosm-waters --target example.geojson --output intersecting_geometries.geojson --download --keep--targettakes a GeoJSON or SQL file that queries geometries from a database. See the /tests directory for examples.--watertakes the OSM water polygons from OSM water polygons. This file must be a shapefile.--outputis used to set the path of where the resultingGeoJSONfile will be saved.--downloaddownloads the OSM water data--keepkeeps the downloaded data--sridis used to choose the coordinate system. The OSM water file provided must be in such such srid. In addition, the output will also be in the chosen srid. Default srid is 4326.
- Reintroduced database option - include choose geom.
- Improve error handling.
- Args need better parsing/validation.
- Allow outputs other than GeoJSON, this may be
geoparquet,duckdborshapefile. - Get
osm-watersto Homebrew.
See LICENSE