|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.process.impl.SingleProcessFactory
org.geotools.process.raster.RasterToVectorFactory
public class RasterToVectorFactory
Process for converting a raster regions to vector polygons.
The algorithm used is adapted from the GRASS raster to vector C code. It moves a 2x2 kernel over the input raster. The data in the kernel are matched to a table of the 12 possible configurations indicating which horizontal and/or vertical pixel boundaries need to be traced.
Field Summary | |
---|---|
static Parameter<java.lang.Integer> |
BAND
Index of the band with data to vectorize |
static Parameter<org.opengis.geometry.Envelope> |
BOUNDS
Bounds (in world coordinates) ot the area to vectorize; if null
or absent the bounds of the coverage are used |
static Parameter<java.lang.Boolean> |
INSIDE_EDGES
Whether inside edges (those separating regions with non-outside values) should be vectorized. |
static Parameter<java.util.Collection> |
OUTSIDE
The code(s) representing NODATA or outside the regions to be vectorized. |
static Parameter<GridCoverage2D> |
RASTER
Grid coverage to vectorize |
static Parameter<FeatureCollection> |
RESULT_FEATURES
Parameter to retrieve the vectorized features from the results map returned by RasterToVectorProcess.execute(java.util.Map, org.opengis.util.ProgressListener) |
Constructor Summary | |
---|---|
RasterToVectorFactory()
|
Method Summary | |
---|---|
RasterToVectorProcess |
create()
Return a new instance of a RasterToVectorProcess |
org.opengis.util.InternationalString |
getDescription()
Get the description of this process |
java.util.Map<java.lang.String,Parameter<?>> |
getParameterInfo()
Get a map of input parameters required by the RasterToVectorProcess.execute(java.util.Map, org.opengis.util.ProgressListener) method |
java.util.Map<java.lang.String,Parameter<?>> |
getResultInfo(java.util.Map<java.lang.String,java.lang.Object> parameters)
Get information about the results that are returned as Map by the RasterToVectorProcess.execute(java.util.Map, org.opengis.util.ProgressListener) method |
static org.opengis.feature.simple.SimpleFeatureType |
getSchema(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Return the feature type of the vectorized polygons. |
org.opengis.util.InternationalString |
getTitle()
Get the process title |
java.lang.String |
getVersion()
Get the version of this process |
boolean |
supportsProgress()
Check if this process supports a progress listener |
Methods inherited from class org.geotools.process.impl.SingleProcessFactory |
---|
create, getDescription, getImplementationHints, getNames, getParameterInfo, getResultInfo, getTitle, getVersion, isAvailable, supportsProgress |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Parameter<GridCoverage2D> RASTER
public static final Parameter<java.lang.Integer> BAND
public static final Parameter<org.opengis.geometry.Envelope> BOUNDS
null
or absent the bounds of the coverage are used
public static final Parameter<java.util.Collection> OUTSIDE
public static final Parameter<java.lang.Boolean> INSIDE_EDGES
Boolean.TRUE
(the default), inside edges
are vectorized. If Boolean.FALSE
only edges between outside and
non-outside values are vectorized.
public static final Parameter<FeatureCollection> RESULT_FEATURES
Constructor Detail |
---|
public RasterToVectorFactory()
Method Detail |
---|
public RasterToVectorProcess create()
create
in class SingleProcessFactory
public org.opengis.util.InternationalString getDescription()
getDescription
in class SingleProcessFactory
public java.util.Map<java.lang.String,Parameter<?>> getParameterInfo()
getParameterInfo
in class SingleProcessFactory
public java.util.Map<java.lang.String,Parameter<?>> getResultInfo(java.util.Map<java.lang.String,java.lang.Object> parameters) throws java.lang.IllegalArgumentException
getResultInfo
in class SingleProcessFactory
parameters
- ignored at present so may be null
java.lang.IllegalArgumentException
public org.opengis.util.InternationalString getTitle()
getTitle
in interface ProcessFactory
getTitle
in class SingleProcessFactory
public java.lang.String getVersion()
getVersion
in class SingleProcessFactory
public boolean supportsProgress()
supportsProgress
in class SingleProcessFactory
public static org.opengis.feature.simple.SimpleFeatureType getSchema(org.opengis.referencing.crs.CoordinateReferenceSystem crs)
crs
- a coorindate reference system for the features
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |