public class ContourProcess extends Object implements RasterProcess
You can specify the specific values for which contours will be generated, or alternatively the interval between contour values.
Contours are returned as a feature collection, where each feature has, as its default
geometry, a LineString for the contour ("the_geom"), and the contour value as the
Double attribute "value".
|Constructor and Description|
|Modifier and Type||Method and Description|
Perform the contouring on the input GridCoverage2D and returns the results as a feature collection.
public static SimpleFeatureCollection process(GridCoverage2D gc2d, Integer band, double levels, Double interval, Boolean simplify, Boolean smooth, Geometry roi, ProgressListener progressListener) throws ProcessException
levelsargument, or by specifying the interval between contour values via the
intervalargument. In the interval case, the resulting contour values will be integer multiples of the specified interval. If both
intervalare supplied the
intervalargument is ignored.
data- the input grid coverage
band- the coverage band to process; defaults to 0 if
levels- the values for which contours should be generated
interval- the interval between contour values (if
levelsis not provided)
simplify- whether to simplify contour lines by removing co-linear vertices; default is to simplify
smooth- whether to apply Bezier smooth to the contours; default is no smoothing
roi- an optional polygonal
Geometryto define the region of interest within which contours will be generated
Copyright © 1996–2018 Geotools. All rights reserved.