|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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, Eastings & Northings) 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 ellisoid with no eccentrity). 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,
String[] identifiers,
String[] names,
String[] versions,
String[] descriptions,
String[] areasOfUse)
Creates a Projection. |
Method Summary | |
---|---|
abstract javax.vecmath.Point2d |
doInverseProjection(double x,
double y)
Do an inverse projection from projected (map) coordinates to geogpraphic 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(Object other)
|
double |
getCosphi0()
|
Datum |
getDatum()
|
abstract String |
getDeegreeSpecificName()
|
double |
getEccentricity()
|
Ellipsoid |
getEllipsoid()
|
double |
getFalseEasting()
|
double |
getFalseNorthing()
|
GeographicCRS |
getGeographicCRS()
|
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 |
setProjectionLatitude(double projectionLatitude)
Set the new projection latitude and calculate the sinphi0 and cosPhi0 accordingly |
void |
setProjectionLongitude(double projectionLongitude)
|
void |
setScale(double scale)
Sets the old scale to the given scale, also adjusts the scaleFactor. |
String |
toString()
|
Methods inherited from class org.deegree.crs.Identifiable |
---|
checkForNullObject, checkForNullObject, getAreaOfUse, getAreasOfUse, getDescription, getDescriptions, getIdAndName, getIdentifier, getIdentifiers, getName, getNames, getVersion, getVersions |
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, String[] identifiers, String[] names, String[] versions, String[] descriptions, String[] areasOfUse)
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 (eg. 0.9996 for UTM)conformal
- if the projection is conformalequalArea
- if the projection result in an equal area mapidentifiers
- names
- versions
- descriptions
- areasOfUse
- Method Detail |
---|
public abstract javax.vecmath.Point2d doProjection(double lambda, double phi) throws CRSException
lambda
- the longitudephi
- the latitude
CRSException
public abstract javax.vecmath.Point2d doInverseProjection(double x, double y) throws CRSException
x
- coordinate on the mapy
- coordinate on the map
CRSException
public abstract String getDeegreeSpecificName()
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 void setProjectionLatitude(double projectionLatitude)
projectionLatitude
- the new latitude.public final void setProjectionLongitude(double projectionLongitude)
projectionLongitude
- the new projection longitudepublic final double getProjectionLatitude()
public final double getProjectionLongitude()
public final double getSinphi0()
public final double getCosphi0()
public final GeographicCRS getGeographicCRS()
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Identifiable
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class Object
Object.hashCode()
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net