public abstract class StandardProjection extends Projection implements ProjectionConstants
Copyright 2004 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
protected double |
a
The major axis of the ellipsoid.
|
protected double |
b
The minor axis of the ellipsoid.
|
protected java.lang.String |
datum |
protected double |
e
The eccentricity of the ellipsoid.
|
protected Ellipsoid |
ellipsoid |
protected double |
es
The square of the eccentricity.
|
protected double |
esp
es / (1.0 - es)
|
protected boolean |
initialized
Set this to false to force initialize() to be run again.
|
protected double |
lam0
Longitude of origin in radians.
|
static java.lang.String |
NAD27 |
static java.lang.String |
NAD83 |
protected double |
originLatitude |
protected double |
originLongitude |
protected double |
originX |
protected double |
originY |
protected double |
phi0
Latitude of origin in radians.
|
ATOL, DEG2RAD, EPSILON, FOURTHPI, HALFPI, INTERNATIONAL_FEET_TO_METERS, METERS_TO_INTERNATIONAL_FEET, METERS_TO_US_SURVEY_FEET, NULL_PROJECTION, ONE_TOL, PI, RAD2DEG, TOL, TWOPI, US_SURVEY_FEET_TO_METERS| Constructor and Description |
|---|
StandardProjection() |
StandardProjection(Cog newState) |
| Modifier and Type | Method and Description |
|---|---|
protected static double |
aacos(double v) |
protected static double |
aasin(double v) |
protected static double |
aatan2(double n,
double d) |
protected static double |
abs(double value) |
protected static double |
asin(double x) |
protected static double |
asqrt(double v) |
protected static double |
atan(double a) |
protected static double |
atan2(double a,
double b) |
protected static double |
cos(double theta) |
java.lang.String |
getDatum() |
java.lang.String |
getEllipsoid() |
double |
getOriginLatitude() |
double |
getOriginLongitude() |
double |
getOriginX() |
double |
getOriginY() |
protected Point |
gpsToProjection(double longitude,
double latitude)
Assumes that GPS coordinates are in NAD83, and converts them to NAD27 if
the projection is in NAD27.
|
protected static double |
hypot(double x,
double y) |
protected void |
initialize() |
protected abstract void |
initializeImp() |
protected static double |
log(double x) |
protected static double[] |
pj_enfn(double es) |
protected static double |
pj_msfn(double sinphi,
double cosphi,
double es) |
protected static double |
pj_phi2(double ts,
double e) |
protected static double |
pj_qsfn(double sinphi,
double e,
double one_es) |
protected static double |
pj_tsfn(double phi,
double sinphi,
double e) |
protected static double |
pow(double a,
double b) |
protected Point |
projectionToGPS(double longitude,
double latitude)
Converts NAD27 coordinates to NAD83.
|
void |
setDatum(java.lang.String newDatum) |
void |
setEllipsoid(java.lang.String newEllipsoid) |
void |
setOriginLatitude(double newOriginLatitude) |
void |
setOriginLongitude(double newOriginLongitude) |
void |
setOriginX(double newX) |
void |
setOriginY(double newY) |
protected static double |
sin(double theta) |
protected static double |
sqrt(double value) |
protected static double |
tan(double theta) |
Cog |
toCog()
Returns the complete internal state of this object in the form of a
Cog. |
protected static double |
toDegrees(double radians) |
protected static double |
toRadians(double degrees) |
getName, project, project, project, project, project, projectFeet, projectFeet, projectFeet, projectFeet, projectFeet, reverse, reverse, reverse, reverse, reverse, reverseFeet, reverseFeet, reverseFeet, reverseFeet, reverseFeet, setNamepublic static java.lang.String NAD27
public static java.lang.String NAD83
protected double originLatitude
protected double originLongitude
protected double originX
protected double originY
protected Ellipsoid ellipsoid
protected java.lang.String datum
protected transient boolean initialized
protected transient double e
protected transient double es
protected transient double esp
protected transient double a
protected transient double b
protected transient double lam0
protected transient double phi0
public StandardProjection()
public StandardProjection(Cog newState)
protected static double hypot(double x,
double y)
protected static double[] pj_enfn(double es)
protected static double pj_tsfn(double phi,
double sinphi,
double e)
protected static double pj_phi2(double ts,
double e)
throws java.lang.Exception
java.lang.Exceptionprotected static double pj_msfn(double sinphi,
double cosphi,
double es)
protected static double pj_qsfn(double sinphi,
double e,
double one_es)
protected static double aasin(double v)
protected static double aacos(double v)
protected static double asqrt(double v)
protected static double aatan2(double n,
double d)
protected static double toDegrees(double radians)
protected static double toRadians(double degrees)
protected static double abs(double value)
protected static double sqrt(double value)
protected static double sin(double theta)
protected static double cos(double theta)
protected static double log(double x)
protected static double asin(double x)
protected static double atan2(double a,
double b)
protected static double pow(double a,
double b)
protected static double tan(double theta)
protected static double atan(double a)
public double getOriginLatitude()
public void setOriginLatitude(double newOriginLatitude)
public double getOriginLongitude()
public void setOriginLongitude(double newOriginLongitude)
public double getOriginX()
public void setOriginX(double newX)
public double getOriginY()
public void setOriginY(double newY)
public java.lang.String getEllipsoid()
public void setEllipsoid(java.lang.String newEllipsoid)
public java.lang.String getDatum()
public void setDatum(java.lang.String newDatum)
protected Point gpsToProjection(double longitude, double latitude)
protected Point projectionToGPS(double longitude, double latitude)
protected void initialize()
protected abstract void initializeImp()