clip

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

Clip a grid based on a feature (vector).

Parameters

Name Type Description Default
band Grid An object that contains a connection the band within the dataset. For further information, see Grid! required
srs osr.SpatialReference Spatial reference (Projection) of the Grid object (e.g. WGS84). Can be optained with the get_srs method. 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
ft ogr.Feature A Feature according to the ogr module of osgeo. Can be optained by indexing a GeomSource. required

Returns

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

See Also

Back to top