girs.rastfeat.clip.clip_by_vector

clip_by_vector(raster_in, layers_in, **kwargs)

Clip by vector

Parameters:
  • raster_in
  • layers_in – layers file name or Layers object. The geometry must be line or polygon
  • kwargs
    key layer_number:
     (int) layer number. Default is the first layer (0)
    key scale:(float) scale the features’ bounding box
    key driver:driver name
    key output_raster:
     filename of the rasters.
    key nodata:nodata
    key all_touched:
     
Returns:

RasterWriter instance

Return type:

RasterWriter