public class PolygonExtractionProcess extends Object implements RasterProcess
Polygonas its default geometry ("the_geom") and the value of the raster region cells as an attribute ("value").
Optionally, a list of classification ranges (Range objects) can be provided to pre-classify the input coverage values into intervals. Vectorizing can also be restricted to a sub-area of the coverage and/or a subset of raster values (by defining values to treat as no-data).
|Constructor and Description|
|Modifier and Type||Method and Description|
Executes the raster to vector process.
public SimpleFeatureCollection execute(GridCoverage2D coverage, Integer band, Boolean insideEdges, Geometry roi, Collection<Number> noDataValues, List<Range> classificationRanges, ProgressListener progressListener) throws ProcessException
coverage- the input grid coverage
band- the coverage band to process; defaults to 0 if
insideEdges- whether boundaries between raster regions with data values (ie. not NODATA) should be returned; defaults to
roi- optional polygonal
Geometryto define a sub-area within which vectorizing will be done
noDataValues- optional list of values to treat as NODATA; regions with these values will not be represented in the returned features; if
null, 0 is used as the single NODATA value; ignored if
classificationRanges- optional list of
Rangeobjects to pre-classify the input coverage prior to vectorizing; values not included in the list will be treated as NODATA; values in the first
Rangeare classified to 1, those in the second
Rangeto 2 etc.
progressListener- an optional listener
Polygon("the_geom") and an attribute "value" with value of the corresponding region in either
coverageor the classified coverage (when
Copyright © 1996–2020 Geotools. All rights reserved.