Converts a raster data set to a vector of the POLYGON geometry type. The user must specify the name of a raster file (input
) and the name of the output (output
) vector. All grid cells containing non-zero, non-NoData values will be considered part of a polygon feature. The vector's attribute table will contain a field called 'VALUE' that will contain the cell value for each polygon feature, in addition to the standard feature ID (FID) attribute.
raster_to_vector_points, raster_to_vector_lines
def raster_to_vector_polygons(self, raster: Raster) -> Vector: ...