The org.geotools.cv
, gc
and
gp
packages are basically org.opengis
mirrors.
Most classes have a 1 to 1 equivalent. However, the Geotools's API is
modified in order to make it more "Java friendly" and ease interoperability
with other Java packages (specially
Java2D and
Java Advanced Imaging).
The main differences are listed below:
All convention described in the Coordinate Transformation Services module (CTS) apply to Grid Coverage Services (GCS) too.
OpenGIS's getMetadataValue(String)
methods are
functionally equivalent to Java's getProperty(String)
methods.
Geotools follow the Java's convention (i.e. "MetadataValue" has been renamed
"Property") in order to ease interoperability with interfaces like
javax.media.jai.PropertySource
.
Some OpenGIS interfaces have been omitted in
order to avoid redundancies with standard Java classes or other
OpenGIS classes:
Omitted class or method | Replacement |
---|---|
GC_Parameter[] |
javax.media.jai.ParameterList |
GP_ParameterType |
Instances of java.lang.Class |
GP_GridAnalysis |
Methods moved in GridCoverage and SampleDimension . |
CV_SampleDimension.getScale() CV_SampleDimension.getOffset() |
org.geotools.cv.Category . |
CV_PaletteInterpretation |
No replacement at this time. |
GC_ValueInBytePacking |
No replacement at this time. |
GC_ByteInValuePacking |
java.nio.ByteOrder |