| java.lang.Object org.geotools.resources.coverage.FeatureUtilities
FeatureUtilities | final public class FeatureUtilities (Code) | | 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.
since: 2.4 version: $Id: FeatureUtilities.java 27037 2007-09-18 12:58:10Z simboss $ author: Simone Giannecchini |
convertPolygon | public static java.awt.Polygon convertPolygon(Polygon roiInput, MathTransform worldToGridTransform) throws TransformException(Code) | | Converts a JTS
Polygon , which represents a ROI, int an AWT
java.awt.Polygon by means of the provided
MathTransform .
Parameters: roiInput - the input ROI as a JTS Polygon. Parameters: worldToGridTransform - the MathTransform to apply to the input ROI. an AWT java.awt.Polygon. throws: TransformException - in case the provided MathTransform chokes. |
convertPolygonToPointArray | public static java.awt.Polygon convertPolygonToPointArray(Polygon roiInput, MathTransform worldToGridTransform, List points) throws TransformException(Code) | | Converts a JTS
Polygon , which represents a ROI, int an AWT
java.awt.Polygon by means of the provided
MathTransform .
It also stores the points for this polygon into the provided
List .
Parameters: roiInput - the input ROI as a JTS Polygon. Parameters: worldToGridTransform - the MathTransform to apply to the input ROI. Parameters: points - a List that should hold the transformed points. an AWT java.awt.Polygon. throws: TransformException - in case the provided MathTransform chokes. |
wrapGridCoverage | public static FeatureCollection wrapGridCoverage(GridCoverage2D coverage) throws TransformException, SchemaException, IllegalAttributeException(Code) | | Wraps a grid coverage into a Feature. Code lifted from ArcGridDataSource
(temporary).
Parameters: coverage - the grid coverage. a feature with the grid coverage envelope as the geometry and thegrid coverage itself in the "grid" attribute. |
|
|