pub fn read_water_polygons(
path: &Path,
bbox: Option<&Bbox>,
emit: impl FnMut(InputFeature),
) -> Result<u64, GeolithError>Expand description
Stream water polygons from a shapefile through emit.
Expects water-polygons-split-3857 in EPSG:3857 projection.
Coordinates are reprojected to WGS84 before emission. See
read_land_polygons for bbox semantics.
§Errors
GeolithError::Shapefile when the shapefile cannot be opened or a shape
cannot be read.