public class TLcdPseudoMercator extends TLcdMercator
Cylindrical conformal projection.
true
along the equator.
ILcdProjection projection = new TLcdPseudoMercator();
This is a variation of the Mercator projection that is used by popular mapping applications such as Google Maps or Microsoft Bing. Functionally it is identical to the Mercator projection, except that it assumes a spherical ellipsoid. For this reason errors of up to 800 metres in position and 0.7 percent in scale may arise.
TLcdMercator
,
Serialized FormfPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
TLcdPseudoMercator()
Constructs a pseudo-mercator projection with the central meridian at 0.0.
|
TLcdPseudoMercator(double aCentralMeridian)
Constructs a pseudo-mercator projection with the specified central meridian.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Makes a deep clone of this
ILcdProjection . |
boolean |
inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid)
Default implementation calls
inWorldBoundsOnSphere with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLHP,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aXYPointSFCT)
Default implementation calls
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius() as sphere radius. |
String |
toString()
Returns the
String representation of the mercator projection. |
void |
world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid,
ILcd2DEditableBounds aWorldBound)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aLLPSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
boundaryLats, boundaryLons, equals, getLatitudeLimits, getTrueScaleLatitude, hashCode, inLonLatBounds, inWorldBoundsOnSphere, isAllInBounds, isContinuous, loadProperties, lonlatheight2worldOnSphereSFCT, setLatitudeLimits, setTrueScaleLatitude, world2DEditableBoundsOnSphereSFCT, world2lonlatOnSphereSFCT, writePropertiesSFCT
calculateCachedValues, getCentralMeridian, getOrigin, setCentralMeridian
addPropertyChangeListener, firePropertyChangeEvent, removePropertyChangeListener
finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public TLcdPseudoMercator()
public TLcdPseudoMercator(double aCentralMeridian)
aCentralMeridian
- the central meridian of the mercator projection.public void lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLHP, ILcdEllipsoid aEllipsoid, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException
ALcdProjection
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius()
as sphere radius.lonlatheight2worldOnEllipsoidSFCT
in interface ILcdProjection
lonlatheight2worldOnEllipsoidSFCT
in class TLcdMercator
aLLHP
- point to be projected.aEllipsoid
- ellipsoid on which the point is defined.aXYPointSFCT
- projected point as side effect.TLcdOutOfBoundsException
- If the
ILcdPoint
aLLHP
is not within the valid area
of the projection (visible area), then this exception is thrown.public void world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint, ILcdEllipsoid aEllipsoid, ILcd2DEditablePoint aLLPSFCT) throws TLcdOutOfBoundsException
ALcdProjection
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2lonlatOnEllipsoidSFCT
in interface ILcdProjection
world2lonlatOnEllipsoidSFCT
in class TLcdMercator
aXYPoint
- projected point for which the corresponding geodetic point is sought.aEllipsoid
- ellipsoid on which the geodetic coordinate is defined.aLLPSFCT
- resulting geodetic coordinate as side effect.TLcdOutOfBoundsException
- If the
ILcdPoint
aXYPoint
is not within the valid
area of the projection (visible area), then this exception is thrown.public void world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid, ILcd2DEditableBounds aWorldBound)
ALcdProjection
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2DEditableBoundsOnEllipsoidSFCT
in interface ILcdProjection
world2DEditableBoundsOnEllipsoidSFCT
in class TLcdMercator
aEllipsoid
- ellipsoid considered.aWorldBound
- the bounds of the projection in world coordinates as side effect.public boolean inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint, ILcdEllipsoid aEllipsoid)
ALcdProjection
inWorldBoundsOnSphere
with
aEllipsoid.getAuxRadius()
as sphere radius.inWorldBoundsOnEllipsoid
in interface ILcdProjection
inWorldBoundsOnEllipsoid
in class TLcdMercator
aXYPoint
- point to be checked upon.aEllipsoid
- ellipsoid on which the geodetic coordinate is defined.true
if valid, false
if invalid.ILcdProjection.inWorldBoundsOnSphere(com.luciad.shape.ILcdPoint, double)
public String toString()
TLcdMercator
String
representation of the mercator projection.toString
in interface ILcdProjection
toString
in class TLcdMercator
String
representation of the mercator projection.public Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class TLcdMercator
ILcdProjection
.