org.opengis.coverage.grid
Interface RectifiedGrid

Show UML class diagram
All Superinterfaces:
Grid, ReferenceableGrid

@UML(identifier="CV_RectifiedGrid",
     specification=ISO_19123)
public interface RectifiedGrid
extends ReferenceableGrid

Grid for which there is an affine transformation between the grid coordinates and the coordinates of an external coordinate reference system. A rectified grid is defined by an origin in an external coordinate reference system, and a set of offset vectors that specify the direction and distance between grid lines within that external CRS.

NOTE: If the coordinate reference system is related to the earth by a datum, the grid is a georectified grid.

Constraints:

Since:
GeoAPI 2.1
Departure from OGC/ISO specification:
ISO 19123 defines RectifiedGrid as a direct sub-type of Grid. In GeoAPI, RectifiedGrid extends Grid indirectly, through ReferenceableGrid. In the GeoAPI hierarchy, RectifiedGrid is considered as a special case of ReferenceableGrid where the grid to CRS coordinate operation is affine. This hierarchy make easier to leverage the same code for both the affine and non-affine cases when the code does not require a strictly affine operation.

Method Summary
 DirectPosition convertCoordinates(GridCoordinates g)
          Deprecated. Renamed as transformCoordinates(org.opengis.coverage.grid.GridCoordinates).
 List<double[]> getOffsetVectors()
          Returns the offset vectors that determine the grid spacing in each direction.
 DirectPosition getOrigin()
          Returns the origin of the rectified grid in an external coordinate reference system.
 GridCoordinates inverseConvertCoordinates(DirectPosition p)
          Deprecated. Renamed as inverseTransformCoordinates(org.opengis.geometry.DirectPosition).
 GridCoordinates inverseTransformCoordinates(DirectPosition p)
          Converts through an affine transform a direct position to the grid coordinates of the nearest grid point.
 DirectPosition transformCoordinates(GridCoordinates g)
          Converts through an affine transform grid coordinates to a direct position.
 
Methods inherited from interface ReferenceableGrid
getCoordinateReferenceSystem
 
Methods inherited from interface Grid
getAxisNames, getCells, getDimension, getExtent, getIntersections
 

Method Detail

getOrigin

@UML(identifier="origin",
     obligation=MANDATORY,
     specification=ISO_19123)
DirectPosition getOrigin()
Returns the origin of the rectified grid in an external coordinate reference system.

Returns:
The origin of the rectified grid.

getOffsetVectors

@UML(identifier="offsetVectors",
     obligation=MANDATORY,
     specification=ISO_19123)
List<double[]> getOffsetVectors()
Returns the offset vectors that determine the grid spacing in each direction. The vectors are defined in terms of the external coordinate reference system.

Returns:
The offset vectors that determine the grid spacing in each direction.

transformCoordinates

@UML(identifier="coordConv",
     obligation=MANDATORY,
     specification=ISO_19123)
DirectPosition transformCoordinates(GridCoordinates g)
Converts through an affine transform grid coordinates to a direct position.

Specified by:
transformCoordinates in interface ReferenceableGrid
Parameters:
g - The grid coordinates to convert.
Returns:
The "real world" coordinates.
Departure from OGC/ISO specification:
A "convertCoordinates" method name would match better the ISO identifier. However since RectifiedGrid extends ReferenceableGrid in GeoAPI, we have to use the same method names than the later. Here, transform is to be understood as a term encompassing both transformation and conversion. This is similar to the MathTransform name policy.

convertCoordinates

@Deprecated
DirectPosition convertCoordinates(GridCoordinates g)
Deprecated. Renamed as transformCoordinates(org.opengis.coverage.grid.GridCoordinates).

Parameters:
g - The grid coordinates to convert.
Returns:
The "real world" coordinates.

inverseTransformCoordinates

@UML(identifier="invCoordConv",
     obligation=MANDATORY,
     specification=ISO_19123)
GridCoordinates inverseTransformCoordinates(DirectPosition p)
Converts through an affine transform a direct position to the grid coordinates of the nearest grid point.

Specified by:
inverseTransformCoordinates in interface ReferenceableGrid
Parameters:
p - The "real world" coordinates to convert.
Returns:
The grid coordinates.
Departure from OGC/ISO specification:
A "inverseConvertCoordinates" method name would match better the ISO identifier. However since RectifiedGrid extends ReferenceableGrid in GeoAPI, we have to use the same method names than the later. Here, transform is to be understood as a term encompassing both transformation and conversion. This is similar to the MathTransform name policy.

inverseConvertCoordinates

@Deprecated
GridCoordinates inverseConvertCoordinates(DirectPosition p)
Deprecated. Renamed as inverseTransformCoordinates(org.opengis.geometry.DirectPosition).

Parameters:
p - The "real world" coordinates to convert.
Returns:
The grid coordinates.


Copyright © 1994-2013 Open Geospatial Consortium. All Rights Reserved.