net.simplace.util.service.GeotoolsHelper
Version: 1.0
This class provides helper methods to get compatibility with Geotools.
public class GeotoolsHelper {
// Public Constructors
public GeotoolsHelper();
// Class Methods public static GridCoverage2D
wrapToGridCoverage2D(Object aObject);
Wraps an object to a org.geotools.coverage.grid.GridCoverage2D.
returns a {@link GridCoverage2D}
public static AbstractGridCoverage2DReader
wrapToGridCoverageReader(Object
aObject);
Wraps an object to an org.geotools.coverage.grid.io.AbstractGridCoverage2DReader.
returns a {@link AbstractGridCoverage2DReader}
public static FeatureCollection
wrapToFeatureCollection(Object aObject);
Wraps an object to a org.geotools.feature.FeatureCollection.
returns a {@link FeatureCollection}
public static FeatureSource
wrapToFeatureSource(Object aObject);
Wraps an object to a org.geotools.data.FeatureSource.
returns a {@link FeatureSource}
public static Object
wrapToGeotools(Object aObject);
Wraps an object to a org.geotools.coverage.grid.GridCoverage2D, org.geotools.coverage.grid.io.AbstractGridCoverage2DReader,
org.geotools.feature.FeatureCollection or org.geotools.data.FeatureSource.
returns a native Geotools-Object or {@code null} if the input
object is null
public static GridZoneStatistic
determineZoneStatistic(Object aValueGrid,
Object aZoneGrid);
Calculated statistical data on a raster, which is divided into zones.
The zones are specified by a second raster (same value = same zone).
- aValueGrid Raster ueber das die Statistik erzeugt wird
- aZoneGrid Raster, das die Zonen bestimmt
returns GridZoneStatistic
public static void
putGridParametersToParameterMap(Object aGridObject,
String aParamPrefix,
FWObservable aObservable, boolean aUseStrings);
Puts the following grid parameters to the parameter map of an
net.simplace.util.FWObservable.
- easting
eastern raster border (longitude)
- westing
western raster border (longitude)
- northing
northern raster border (latitude)
- southing
southern raster border (latitude)
- widthLon
horizontal size (longitude)
- heightLat
vertical size (latitude)
- columns
count of horizontal raster cells
- rows
count of vertical raster cells
- resolutionLon
horizontal resolution (width / columns)
- resolutionLat
vertical resolution (height / rows)
- crs
org.opengis.referencing.crs.CoordinateReferenceSystemCoordinate Reference System
- crsWKT
WKT definition of the org.opengis.referencing.crs.CoordinateReferenceSystemCoordinate Reference System
- aGridObject the {@link GridCoverage2D}, {@link StyledGridCoverageInterface} or ...
the parameters are taken from
- aParamPrefix a prefix the upper mentioned key is extended with (e.g. the grid name)
- aObservable the observable to provide the parameter map
- aUseStrings indicates whether the numeric parameters are converted to
string before put in the parameter map
}