|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.crs.Identifiable org.deegree.crs.projections.Projection
public abstract class Projection
Map conversion
is the process of changing the map grid coordinates (usually, but not always, Easting &
Northing) of a Projected Coordinate Reference System to its corresponding geographical coordinates (Latitude &
Longitude) or vice versa.
A projection is conformal if an infinitesimal small perfect circle on the earth's surface results in an infinitesimal small projected perfect circle (an ellipsoid with no eccentricity). In other words, the relative local angles about every point on the map are shown correctly.
An equal area projection can be best explained with a coin (Snyder), a coin (of any size) covers exactly the same area of the actual earth as the same coin on any other part of the map. This can only be done by distorting shape, scale and and angles of the original earth's layout.
Constructor Summary | |
---|---|
Projection(GeographicCRS geographicCRS,
double falseNorthing,
double falseEasting,
javax.vecmath.Point2d naturalOrigin,
Unit units,
double scale,
boolean conformal,
boolean equalArea,
Identifiable id)
Creates a Projection. |
Method Summary | |
---|---|
abstract javax.vecmath.Point2d |
doInverseProjection(double x,
double y)
Do an inverse projection from projected (map) coordinates to geographic coordinates. |
abstract javax.vecmath.Point2d |
doProjection(double lambda,
double phi)
The actual transform method doing a projection from geographic coordinates to map coordinates. |
boolean |
equals(java.lang.Object other)
|
double |
getCosphi0()
|
Datum |
getDatum()
|
double |
getEccentricity()
|
Ellipsoid |
getEllipsoid()
|
double |
getFalseEasting()
|
double |
getFalseNorthing()
|
GeographicCRS |
getGeographicCRS()
|
abstract java.lang.String |
getImplementationName()
|
javax.vecmath.Point2d |
getNaturalOrigin()
|
PrimeMeridian |
getPrimeMeridian()
|
double |
getProjectionLatitude()
|
double |
getProjectionLongitude()
|
double |
getScale()
|
double |
getScaleFactor()
|
double |
getSemiMajorAxis()
|
double |
getSemiMinorAxis()
|
double |
getSinphi0()
|
double |
getSquaredEccentricity()
|
Unit |
getUnits()
|
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. |
boolean |
isConformal()
|
boolean |
isEqualArea()
|
boolean |
isSpherical()
|
void |
setFalseEasting(double newFalseEasting)
sets the false easting to given value. |
void |
setScale(double scale)
Sets the old scale to the given scale, also adjusts the scaleFactor. |
java.lang.String |
toString()
|
Methods inherited from class org.deegree.crs.Identifiable |
---|
checkForNullObject, checkForNullObject, checkForNullObject, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions, hasID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Projection(GeographicCRS geographicCRS, double falseNorthing, double falseEasting, javax.vecmath.Point2d naturalOrigin, Unit units, double scale, boolean conformal, boolean equalArea, Identifiable id)
geographicCRS
- which this projection uses.falseNorthing
- in given unitsfalseEasting
- in given unitsnaturalOrigin
- in radians longitude, latitude.units
- of the map projectionscale
- at the prime meridian (e.g. 0.9996 for UTM)conformal
- if the projection is conformalequalArea
- if the projection result in an equal area mapid
- an identifiable instance containing information about this projection.Method Detail |
---|
public abstract javax.vecmath.Point2d doProjection(double lambda, double phi) throws ProjectionException
lambda
- the longitudephi
- the latitude
ProjectionException
- if the given lamba and phi coordinates could not be projected to x and y.public abstract javax.vecmath.Point2d doInverseProjection(double x, double y) throws ProjectionException
x
- coordinate on the mapy
- coordinate on the map
ProjectionException
- if the given x and y coordinates could not be inverted to lambda and phi.public abstract java.lang.String getImplementationName()
public final boolean isConformal()
public final boolean isEqualArea()
public final double getScale()
public void setScale(double scale)
scale
- the new scalepublic final double getScaleFactor()
public final Datum getDatum()
public final double getFalseEasting()
public void setFalseEasting(double newFalseEasting)
newFalseEasting
- the new false easting parameter.public final double getFalseNorthing()
public final javax.vecmath.Point2d getNaturalOrigin()
public final Unit getUnits()
public final PrimeMeridian getPrimeMeridian()
public final Ellipsoid getEllipsoid()
public final double getEccentricity()
public final double getSquaredEccentricity()
public final double getSemiMajorAxis()
public final double getSemiMinorAxis()
public final boolean isSpherical()
public final double getProjectionLatitude()
public final double getProjectionLongitude()
public final double getSinphi0()
public final double getCosphi0()
public final GeographicCRS getGeographicCRS()
public boolean equals(java.lang.Object other)
equals
in class Identifiable
public java.lang.String toString()
toString
in class Identifiable
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class java.lang.Object
Object.hashCode()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org