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, zoneFields inherited from class noaa.coastwatch.util.trans.EarthTransform
boundaryHandler, dimsFields 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
ConstructorsConstructorDescriptionGCTPProjection(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.voidmapTransformFor(double[] lonLat, double[] xy) Deprecated.Performs a forward map transformation from (latitude, longitude) coordinates to map (x, y).voidmapTransformInv(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, transformImplMethods inherited from class noaa.coastwatch.util.trans.EarthTransform2D
get2DVersion, getBoundingBox, getWorldAxes, main, setPointTransform, transformToPointMethods inherited from class noaa.coastwatch.util.trans.EarthTransform
closest, distance, getBoundaryHandler, getDimensions, getResolution, getSpheroid, getSpheroid, isInvertible, transform, transform, transform, transformMethods 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. TheSpheroidConstantsandProjectionConstantsclass 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:
getParametersin classMapProjection- Returns:
- the parameters array.
-
mapTransformInv
public void mapTransformInv(double[] xy, double[] lonLat) Deprecated.Description copied from class:MapProjectionPerforms an inverse map transformation from map (x, y) coordinates to (latitude, longitude).- Specified by:
mapTransformInvin 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:MapProjectionPerforms a forward map transformation from (latitude, longitude) coordinates to map (x, y).- Specified by:
mapTransformForin 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:EarthTransformCreates and returns a copy of this object.- Overrides:
clonein classMapProjection
-
MapProjectionFactoryto create and work with map projections rather than this class.