MapProjectionFactory
to create
and work with map projections rather than this class.@Deprecated public class GCTPProjection extends MapProjection implements java.lang.Cloneable
GCTPProjection
class implements Earth
transform calculations for many common 2D map projections
using the native GCTP transformation library. See the General
Cartographic Transformations Package (GCTP
) class for
details on the projections constants and parameters.datum, DESCRIPTION, forwardAffine, inverseAffine, positiveLon, spheroid, system, zone
dims
ALASKA, ALBERS, AZMEQD, EQRECT, EQUIDC, GEO, GNOMON, GOOD, GVNSP, HAMMER, HOM, IMOLL, LAMAZ, LAMCC, MAX_PROJECTIONS, MERCAT, MILLER, MOLL, OBEQA, ORTHO, POLYC, PROJECTION_NAMES, PS, ROBIN, SNSOID, SOM, SPCS, STEREO, TM, USDEF, UTM, VGRINT, WAGIV, WAGVII
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 |
---|
GCTPProjection(int system,
int zone,
double[] parameters,
int spheroid,
int[] dimensions,
java.awt.geom.AffineTransform affine)
Deprecated.
Constructs a map projection from the specified projection and
affine transform.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deprecated.
Creates and returns a copy of this object.
|
double[] |
getParameters()
Deprecated.
Gets the GCTP projection parameters.
|
void |
mapTransformFor(double[] lonLat,
double[] xy)
Deprecated.
Performs a forward map transformation from (latitude,
longitude) coordinates to map (x, y).
|
void |
mapTransformInv(double[] xy,
double[] lonLat)
Deprecated.
Performs an inverse map transformation from map (x, y)
coordinates to (latitude, longitude).
|
describe, equals, getAffine, getDatum, getModified, getPixelDimensions, getPixelSize, getProjection, getSpheroid, getSpheroidName, getSubset, getSubset, getSystem, getSystemName, getZone, isOrientable, setAffine, setPositiveLon, transformImpl, transformImpl
get2DVersion, getBoundingBox, getWorldAxes, main, setPointTransform, transformToPoint
distance, getDimensions, getResolution, getSpheroid, getSpheroid, transform, transform, transform, transform
getMetadataMap
public GCTPProjection(int system, int zone, double[] parameters, int spheroid, int[] dimensions, java.awt.geom.AffineTransform affine) throws java.awt.geom.NoninvertibleTransformException
SpheroidConstants
and
ProjectionConstants
class should be consulted for
valid parameter constants.system
- the map projection system.zone
- the map projection zone for State Plane and UTM
projections.parameters
- an array of 15 GCTP projection parameters.spheroid
- the spheroid code.dimensions
- the dimensions of the data grid as [rows,
columns]
.affine
- the affine transform for translating data
[row, column]
to map [x, y]
.java.awt.geom.NoninvertibleTransformException
- if the map projection to data
coordinate affine transform is not invertible.public double[] getParameters()
getParameters
in class MapProjection
public void mapTransformInv(double[] xy, double[] lonLat)
MapProjection
mapTransformInv
in class MapProjection
xy
- the x and y in meters.lonLat
- the longitude and latitude in radians or Double.NaN
if the transform could not be computed (modified).public void mapTransformFor(double[] lonLat, double[] xy)
MapProjection
mapTransformFor
in class MapProjection
lonLat
- the longitude and latitude in radians.xy
- the x and y in meters or Double.NaN if the
transform could not be computed (modified).public java.lang.Object clone()
EarthTransform
clone
in class MapProjection