| Crates.io | osm-waters |
| lib.rs | osm-waters |
| version | 0.2.2 |
| created_at | 2023-12-17 08:55:37.473462+00 |
| updated_at | 2024-04-04 07:16:09.943775+00 |
| description | Obtain the necessary OSM water bodies for your project. It finds the water polygons that intersect your chosen geometries and outputs the results into GeoJSON. |
| homepage | http://jjcfrancis.co |
| repository | https://github.com/jjcfrancisco/osm-waters |
| max_upload_size | |
| id | 1072392 |
| size | 204,210 |
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.geojson
osm-waters --target example.geojson --output intersecting_geometries.geojson --download
osm-waters --target example.geojson --output intersecting_geometries.geojson --download --keep
--target takes a GeoJSON or SQL file that queries geometries from a database. See the /tests directory for examples.
--water takes the OSM water polygons from OSM water polygons. This file must be a shapefile.
--output is used to set the path of where the resulting GeoJSON file will be saved.
--download downloads the OSM water data
--keep keeps the downloaded data
--srid is 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.
geoparquet, duckdb or shapefile.osm-waters to Homebrew.See LICENSE