Skip navigation links

Package org.geotoolkit.coverage.grid

GridCoverage2D implementation.

See: Description

Package org.geotoolkit.coverage.grid Description

GridCoverage2D implementation. An explanation for this package is provided in the OpenGIS® javadoc. The remaining discussion on this page is specific to the Geotk implementation.

The main class in this package is GridCoverage2D, which is a two-dimensional slice in a n-dimensional cube of data. Despite its name, GridCoverage2D instances can be associated to n-dimensional envelopes providing that only two dimensions have a grid span greater than 1.

The GridCoverage2D constructor is rather tedious. The GridCoverageBuilder convenience class provides more convenient ways to create a grid coverage. While it is possible to create a grid coverage from a geodetic envelope, this approach should be used in last resort only. Instead, always specify the grid to CRS affine transform. This is preferable because envelopes have ambiguities (do we need to swap the longitude and latitude axes? Do we need to flip the y axis?) which Geotk tries to resolve using heuristic rules implemented in GridToEnvelopeMapper. Those rules are somewhat arbitrary and are not guaranteed to produce the expected result. On the other hand, the grid to CRS affine transform is fully determinist.

Martin Desruisseaux (IRD, Geomatys)

Defined in the geotk-coverage module

Skip navigation links

Copyright © 2009–2017 All rights reserved.