public class StatePlaneProjection extends GCTPCStyleProjection
StatePlaneProjection
class performs
State Plane map projection calculations.ERROR, IN_BREAK, LAT, LON, OK, params, X, Y
C3P, D2R, ec, ec2, EPSLN, falseEast, falseNorth, HALF_PI, PI, R2D, rMajor, TWO_PI
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 |
---|
StatePlaneProjection(int[] dimensions,
java.awt.geom.AffineTransform affine,
long zone,
long sphere,
java.lang.String fn27,
java.lang.String fn83)
Constructs a map projection from the specified projection and
affine transform.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Tests this class.
|
void |
mapTransformFor(double[] lonLat,
double[] xy)
Performs a forward map transformation from (latitude,
longitude) coordinates to map (x, y).
|
void |
mapTransformInv(double[] xy,
double[] lonLat)
Performs an inverse map transformation from map (x, y)
coordinates to (latitude, longitude).
|
protected long |
projfor(double lat,
double lon,
double[] x,
double[] y)
Performs the actual forward calculation as specified in the
GCTP C code.
|
protected long |
projinv(double x,
double y,
double[] lon,
double[] lat)
Performs the actual inverse calculation as specified in the
GCTP C code.
|
cenlat, cenlon, cenlonmer, genrpt_long, genrpt, getParameters, offsetp, origin, p_error, p_error, p_error, paksz, pblank, phi1z, phi2z, phi3z, phi4z, ptitle, radius, radius2, setErrorStream, setParameters, setParamStream, sprintf, stanparl, stparl1
adjust_lon, asinz, calc_utm_zone, e0fn, e1fn, e2fn, e3fn, e4fn, mlfn, msfnz, pack_angle, pakcz, pakr2dm, phi1z, phi2z, phi3z, phi4z, qsfnz, setDatum, setFalse, sign, sphdz, tsfnz, unpack_angle
clone, describe, equals, getAffine, getDatum, getModified, getPixelDimensions, getPixelSize, getProjection, getSpheroid, getSpheroidName, getSubset, getSubset, getSystem, getSystemName, getZone, isOrientable, setAffine, setPositiveLon, transformImpl, transformImpl
get2DVersion, getBoundingBox, getWorldAxes, setPointTransform, transformToPoint
distance, getDimensions, getResolution, getSpheroid, getSpheroid, transform, transform, transform, transform
getMetadataMap
public StatePlaneProjection(int[] dimensions, java.awt.geom.AffineTransform affine, long zone, long sphere, java.lang.String fn27, java.lang.String fn83) throws java.awt.geom.NoninvertibleTransformException
SpheroidConstants
and
ProjectionConstants
class should be consulted for
valid parameter constants.dimensions
- the dimensions of the data grid as [rows,
columns]
.affine
- the affine transform for translating data
[row, column]
to map [x, y]
.zone
- the zone number.sphere
- the spheroid number.fn27
- the name of file containing the NAD27 parameters.fn83
- the name of file containing the NAD83 parameters.java.awt.geom.NoninvertibleTransformException
- if the map
projection to data coordinate affine transform is not
invertible.java.lang.IllegalArgumentException
- if the paramaters have an inconsistency.protected long projfor(double lat, double lon, double[] x, double[] y)
GCTPCStyleProjection
projfor
in class GCTPCStyleProjection
lat
- the latitude to convert.lon
- the longitude to convert.x
- the map coordinate x value (modified).y
- the map coordinate y value (modified).public void mapTransformFor(double[] lonLat, double[] xy)
MapProjection
mapTransformFor
in class GCTPCStyleProjection
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).protected long projinv(double x, double y, double[] lon, double[] lat)
GCTPCStyleProjection
projinv
in class GCTPCStyleProjection
x
- the map coordinate x value (modified).y
- the map coordinate y value (modified).lon
- the longitude to convert.lat
- the latitude to convert.public void mapTransformInv(double[] xy, double[] lonLat)
MapProjection
mapTransformInv
in class GCTPCStyleProjection
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 static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception