mapbox / rio-mbtiles

A plugin command for the Rasterio CLI that exports a raster dataset to an MBTiles 1.1 SQLite file
MIT License
125 stars 36 forks source link

--cutline option with tests #63

Closed sgillies closed 4 years ago

sgillies commented 4 years ago

Resolves #62

A cutline file contains a GeoJSON FeatureCollection, the feature geometries of which are polygons or multipolygons. A cutline affects mbtiles export in 3 ways:

  1. the bounds of the exported mbtiles are restricted by the bounds of the cutline shapes.
  2. only tiles intersecting with the cutline shapes are generated.
  3. only pixels within the cutline shapes are exported into tiles.