public class GeoVectorProjection extends EarthTransform2D
GeoVectorProjection
class uses arrays of latitude
and longitude data to transform coordinates. It is assumed that
the projection may be described by two 1D arrays: one for latitude
and one for longitude. Each row in data coordinates has all the
same latitude, and each column has all the same longitude or
vice-versa. Since the projection is based on discrete data values,
it is similar to swath in that the transformation of data
coordinates outside the data dimensions returns invalid Earth
locations.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 |
---|
GeoVectorProjection(double[] latArray,
double[] lonArray,
int latLocIndex,
int lonLocIndex)
Constructs a new projection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe()
Gets a string describing the earth transform type.
|
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 GeoVectorProjection(double[] latArray, double[] lonArray, int latLocIndex, int lonLocIndex)
latArray
- the array of latitude locations in degrees
(should be monotonic).lonArray
- the array of longitude locations in degrees
(should be monotonic).latLocIndex
- the data location index associated with
latitude.lonLocIndex
- the data location index associated with
longitude.public java.lang.String describe()
EarthTransform
describe
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)