clip

gis.overlay.clip(ft, band, gtf)

Clip a grid based on a feature (vector).

Parameters

Name Type Description Default
ft ogr.Feature A Feature according to the ogr module of osgeo. Can be optained by indexing a GeomSource. required
band Grid An object that contains a connection the band within the dataset. For further information, see Grid! required
gtf tuple The geotransform of a grid dataset. Can be optained via the get_geotransform method. Has the following shape: (left, xres, xrot, upper, yrot, yres). required

Returns

Name Type Description
array A 1D array containing the clipped values.

See Also

Back to top