Package noaa.coastwatch.util.trans
Class GCTPProjection
java.lang.Object
noaa.coastwatch.util.MetadataContainer
noaa.coastwatch.util.trans.EarthTransform
noaa.coastwatch.util.trans.EarthTransform2D
noaa.coastwatch.util.trans.MapProjection
noaa.coastwatch.util.trans.GCTPProjection
- All Implemented Interfaces:
Cloneable
,ProjectionConstants
Deprecated.
The
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.- Since:
- 3.1.0
- Author:
- Peter Hollemans
-
Field Summary
Fields inherited from class noaa.coastwatch.util.trans.MapProjection
datum, DESCRIPTION, forwardAffine, inverseAffine, spheroid, system, zone
Fields inherited from class noaa.coastwatch.util.trans.EarthTransform
boundaryHandler, dims
Fields inherited from interface noaa.coastwatch.util.trans.ProjectionConstants
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
-
Constructor Summary
ConstructorDescriptionGCTPProjection
(int system, int zone, double[] parameters, int spheroid, int[] dimensions, AffineTransform affine) Deprecated.Constructs a map projection from the specified projection and affine transform. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated.Creates and returns a copy of this object.double[]
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).Methods inherited from class noaa.coastwatch.util.trans.MapProjection
describe, equals, getAffine, getDatum, getModified, getPixelDimensions, getPixelSize, getProjection, getSpheroid, getSpheroidName, getSubset, getSubset, getSystem, getSystemName, getZone, isOrientable, setAffine, setPositiveLon, transformImpl, transformImpl
Methods inherited from class noaa.coastwatch.util.trans.EarthTransform2D
get2DVersion, getBoundingBox, getWorldAxes, main, setPointTransform, transformToPoint
Methods inherited from class noaa.coastwatch.util.trans.EarthTransform
closest, distance, getBoundaryHandler, getDimensions, getResolution, getSpheroid, getSpheroid, isInvertible, transform, transform, transform, transform
Methods inherited from class noaa.coastwatch.util.MetadataContainer
getMetadataMap
-
Constructor Details
-
GCTPProjection
public GCTPProjection(int system, int zone, double[] parameters, int spheroid, int[] dimensions, AffineTransform affine) throws NoninvertibleTransformException Deprecated.Constructs a map projection from the specified projection and affine transform. TheSpheroidConstants
andProjectionConstants
class should be consulted for valid parameter constants.- Parameters:
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]
.- Throws:
NoninvertibleTransformException
- if the map projection to data coordinate affine transform is not invertible.
-
-
Method Details
-
getParameters
public double[] getParameters()Deprecated.Gets the GCTP projection parameters.- Overrides:
getParameters
in classMapProjection
- Returns:
- the parameters array.
-
mapTransformInv
public void mapTransformInv(double[] xy, double[] lonLat) Deprecated.Description copied from class:MapProjection
Performs an inverse map transformation from map (x, y) coordinates to (latitude, longitude).- Specified by:
mapTransformInv
in classMapProjection
- Parameters:
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).
-
mapTransformFor
public void mapTransformFor(double[] lonLat, double[] xy) Deprecated.Description copied from class:MapProjection
Performs a forward map transformation from (latitude, longitude) coordinates to map (x, y).- Specified by:
mapTransformFor
in classMapProjection
- Parameters:
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).
-
clone
Deprecated.Description copied from class:EarthTransform
Creates and returns a copy of this object.- Overrides:
clone
in classMapProjection
-
MapProjectionFactory
to create and work with map projections rather than this class.