public class DataProjection extends EarthTransform2D
DataProjection
class implements earth transform
calculations for data coordinates with explicit latitude and
longitude data. The only possible operation is translation from
data coordinates to geographic coordinates -- the reverse is not
implemented.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 |
---|
DataProjection(DataVariable lat,
DataVariable lon)
Constructs a data projection from the specified latitude and
longitude data.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe()
Gets a string describing the earth transform type.
|
boolean |
equals(java.lang.Object obj)
Compares the specified object with this data projection for
equality.
|
DataVariable |
getLat()
Gets the latitude variable used in this projection.
|
DataVariable |
getLon()
Gets the longitude variable used in this projection.
|
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, main, setPointTransform, transformToPoint
clone, distance, getDatum, getDimensions, getResolution, getSpheroid, getSpheroid, getSubset, transform, transform, transform, transform
getMetadataMap
public static final java.lang.String DESCRIPTION
public DataProjection(DataVariable lat, DataVariable lon)
lat
- a data variable containing latitude data.lon
- a data variable containing longitude data.public DataVariable getLat()
public DataVariable getLon()
public java.lang.String describe()
EarthTransform
describe
in class EarthTransform
protected void transformImpl(DataLocation dataLoc, EarthLocation earthLoc)
EarthTransform
transformImpl
in class EarthTransform
EarthTransform.transform(DataLocation,EarthLocation)
protected void transformImpl(EarthLocation earthLoc, DataLocation dataLoc)
EarthTransform
transformImpl
in class EarthTransform
EarthTransform.transform(EarthLocation,DataLocation)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to be compared for equality.