public class CDMGridMappedProjection extends EarthTransform2D
CDMGridMappedProjection
class wraps a Java NetCDF
CDM projection and allows access to transform calculations through the
standard EarthTransform
interface.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESCRIPTION
Projection description string.
|
dims
AIRY, AUS_NAT, BESSEL, CLARKE1866, CLARKE1880, EVEREST, GRS1980, HOUGH, INT1909, INT1967, KRASS, MAX_SPHEROIDS, MERCURY1960, MOD_AIRY, MOD_EVEREST, MOD_MER1968, SE_ASIA, SPHERE, SPHEROID_INV_FLAT, SPHEROID_NAMES, SPHEROID_SEMI_MAJOR, SPHEROID_SEMI_MINOR, STD_RADIUS, WGS66, WGS72
Constructor and Description |
---|
CDMGridMappedProjection(ucar.nc2.dt.GridCoordSystem coordSystem)
Constructs a new projection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe()
Gets a string describing the earth transform type.
|
boolean |
equals(java.lang.Object obj) |
Datum |
getDatum()
Gets the transform datum.
|
static boolean |
isCompatibleSystem(ucar.nc2.dt.GridCoordSystem system)
Checks if a coordinate system is compatible with this class.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
protected void |
transformImpl(DataLocation dataLoc,
EarthLocation earthLoc)
Implements the data to geographic transform.
|
protected void |
transformImpl(EarthLocation earthLoc,
DataLocation dataLoc)
Implements the geographic to data transform.
|
get2DVersion, getBoundingBox, getWorldAxes, isOrientable, setPointTransform, transformToPoint
clone, distance, getDimensions, getResolution, getSpheroid, getSpheroid, getSubset, transform, transform, transform, transform
getMetadataMap
public static final java.lang.String DESCRIPTION
public CDMGridMappedProjection(ucar.nc2.dt.GridCoordSystem coordSystem)
coordSystem
- the grid coordinate system to use to create the
projection.java.lang.IllegalArgumentException
- if the coordinate system cannot be used
by this class.public java.lang.String describe()
EarthTransform
describe
in class EarthTransform
public static boolean isCompatibleSystem(ucar.nc2.dt.GridCoordSystem system)
system
- the grid coordinate system to test.public Datum getDatum()
EarthTransform
getDatum
in class EarthTransform
protected void transformImpl(EarthLocation earthLoc, DataLocation dataLoc)
EarthTransform
transformImpl
in class EarthTransform
EarthTransform.transform(EarthLocation,DataLocation)
protected void transformImpl(DataLocation dataLoc, EarthLocation earthLoc)
EarthTransform
transformImpl
in class EarthTransform
EarthTransform.transform(DataLocation,EarthLocation)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception