clip
gis.overlay.clip(ft, band, gtf)
 
Clip a grid based on a feature (vector).
Parameters
| 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. Has the following shape: (left, xres, xrot, upper, yrot, yres). | 
required | 
Returns
 | 
array | 
A 1D array containing the clipped values. | 
 Back to top