mapchete.commons.clip module¶
Clip array using vector data.
- mapchete.commons.clip.clip_array_with_vector(array, array_affine, geometries, inverted=False, clip_buffer=0)¶
Clip input array with a vector list.
- Parameters
- arrayarray
input raster data
- array_affineAffine
Affine object describing the raster’s geolocation
- geometriesiterable
iterable of dictionaries, where every entry has a ‘geometry’ and ‘properties’ key.
- invertedbool
invert clip (default: False)
- clip_bufferinteger
buffer (in pixels) geometries before clipping
- Returns
- clipped arrayarray