Class GCTPProjection

All Implemented Interfaces:
Cloneable, ProjectionConstants

@Deprecated public class GCTPProjection extends MapProjection implements Cloneable
Deprecated.
The native methods of GCTP are no longer supported. Use the MapProjectionFactory to create and work with map projections rather than this class.
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
  • 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. The SpheroidConstants and ProjectionConstants 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 class MapProjection
      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 class MapProjection
      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 class MapProjection
      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

      public Object clone()
      Deprecated.
      Description copied from class: EarthTransform
      Creates and returns a copy of this object.
      Overrides:
      clone in class MapProjection