|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.resources.coverage.FeatureUtilities
public final class FeatureUtilities
A set of utilities methods for interactions between GridCoverage
and Feature
. Those methods are not really rigorous; must of them
should be seen as temporary implementations.
Method Summary | |
---|---|
static java.awt.Polygon |
convertPolygon(com.vividsolutions.jts.geom.Polygon roiInput,
org.opengis.referencing.operation.MathTransform worldToGridTransform)
Converts a JTS Polygon , which represents a ROI, int an AWT
Polygon by means of the provided MathTransform . |
static java.awt.Polygon |
convertPolygonToPointArray(com.vividsolutions.jts.geom.Polygon roiInput,
org.opengis.referencing.operation.MathTransform worldToGridTransform,
java.util.List<java.awt.geom.Point2D> points)
Converts a JTS Polygon , which represents a ROI, int an AWT
Polygon by means of the provided MathTransform . |
static boolean |
isWrappedCoverage(org.opengis.feature.simple.SimpleFeatureType featureType)
Checks if the feature type specified is a GridCoverage wrapper |
static boolean |
isWrappedCoverageReader(org.opengis.feature.simple.SimpleFeatureType featureType)
Checks if the feature type specified is a AbstractGridCoverage2DReader wrapper |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
wrapGridCoverage(GridCoverage2D coverage)
Wraps a grid coverage into a Feature. |
static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
wrapGridCoverageReader(AbstractGridCoverage2DReader gridCoverageReader,
org.opengis.parameter.GeneralParameterValue[] params)
Wraps a grid coverage into a Feature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> wrapGridCoverage(GridCoverage2D coverage) throws org.opengis.referencing.operation.TransformException, SchemaException
coverage
- the grid coverage.
org.opengis.referencing.operation.TransformException
SchemaException
public static boolean isWrappedCoverage(org.opengis.feature.simple.SimpleFeatureType featureType)
featureType
-
public static FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> wrapGridCoverageReader(AbstractGridCoverage2DReader gridCoverageReader, org.opengis.parameter.GeneralParameterValue[] params) throws org.opengis.referencing.operation.TransformException, FactoryRegistryException, SchemaException
reader
- the grid coverage reader.
org.opengis.referencing.operation.TransformException
FactoryRegistryException
SchemaException
public static boolean isWrappedCoverageReader(org.opengis.feature.simple.SimpleFeatureType featureType)
featureType
-
public static java.awt.Polygon convertPolygon(com.vividsolutions.jts.geom.Polygon roiInput, org.opengis.referencing.operation.MathTransform worldToGridTransform) throws org.opengis.referencing.operation.TransformException
Polygon
, which represents a ROI, int an AWT
Polygon
by means of the provided MathTransform
.
roiInput
- the input ROI as a JTS Polygon
.worldToGridTransform
- the MathTransform
to apply to the input ROI.
Polygon
.
org.opengis.referencing.operation.TransformException
- in case the provided MathTransform
chokes.public static java.awt.Polygon convertPolygonToPointArray(com.vividsolutions.jts.geom.Polygon roiInput, org.opengis.referencing.operation.MathTransform worldToGridTransform, java.util.List<java.awt.geom.Point2D> points) throws org.opengis.referencing.operation.TransformException
Polygon
, which represents a ROI, int an AWT
Polygon
by means of the provided MathTransform
.
It also stores the points for this polygon into the provided List
.
roiInput
- the input ROI as a JTS Polygon
.worldToGridTransform
- the MathTransform
to apply to the input ROI.points
- a List
that should hold the transformed points.
Polygon
.
org.opengis.referencing.operation.TransformException
- in case the provided MathTransform
chokes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |