public class TLcdSwissObliqueMercator extends ALcdObliqueCylindrical
A projection developed for the area of Switzerland. It is based upon a three step process:
ILcdProjection projection =
new TLcdSwissObliqueMercator(-30.0, 20.0, 30.0);
The equations of the Swiss Oblique Mercator projection are taken from [SwissTopo2001].
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
TLcdSwissObliqueMercator()
Constructs a Swiss Oblique Mercator projection.
|
TLcdSwissObliqueMercator(double aCentralMeridian,
double aStandardParallel)
Constructs a Swiss Oblique Mercator projection.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
boundaryLats(double aLongitude)
Default implementation.
|
double[][] |
boundaryLons(double aLatitude)
Default implementation.
|
protected void |
calculateCachedValues()
Constants based on the longitude, latitude, standard parallel, and azimuth
of the projection don't have to be recalculated every time a method is called.
|
Object |
clone()
Makes a deep clone of this
ILcdProjection . |
boolean |
inLonLatBounds(ILcdPoint aLLHP)
Checks if an
ILcdPoint is inside the valid area of geodetic
coordinates of the projection. |
boolean |
inWorldBoundsOnSphere(ILcdPoint aXYPoint,
double aRadius)
Checks if a
ILcdPoint is inside the valid cartesian area of
the projection. |
boolean |
isAllInBounds()
If all geodetic coordinates (l ,j ) are projected (visible) by an
ILcdProjection
and all (x,y ) coordinates are bounded this is true . |
void |
lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLHP,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aXYPointSFCT)
Default implementation calls
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius() as sphere radius. |
void |
lonlatheight2worldOnSphereSFCT(ILcdPoint aLLHP,
double aRadius,
ILcd2DEditablePoint aXYPointSFCT)
Transforms an
ILcd2DEditablePoint on a sphere into the
cartesian coordinate system of the projection. |
void |
setAzimuth(double aAzimuth)
The azimuth value for the Swiss Oblique Mercator projection
has to be 90 degrees.
|
void |
setCentralMeridian(double aCentralMeridian)
Sets the centralMeridian of this
ILcdObliqueCylindrical to
the meridian with longitude aLongitude . |
void |
setStandardParallel(double aStandardParallel)
Sets the standardParallel of this
ILcdObliqueCylindrical to
the parallel with latitude aLatitude . |
String |
toString()
Returns the
String representation of the Swiss Oblique Mercator projection. |
void |
world2DEditableBoundsOnSphereSFCT(double aRadius,
ILcd2DEditableBounds aWorldBounds)
Sets the
ILcd2DEditableBounds object to the bounds of the projection
in world coordinates. |
void |
world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aLLPointSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
world2lonlatOnSphereSFCT(ILcdPoint aXYPoint,
double aRadius,
ILcd2DEditablePoint aLLPointSFCT)
Transforms an
ILcdPoint from the cartesian coordinate system
of the projection into an ILcd2DEditablePoint onto a sphere. |
equals, getAzimuth, getCentralMeridian, getOrigin, getStandardParallel, hashCode, isContinuous, loadProperties, writePropertiesSFCT
addPropertyChangeListener, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT
finalize, getClass, notify, notifyAll, wait, wait, wait
inWorldBoundsOnEllipsoid, world2DEditableBoundsOnEllipsoidSFCT
addPropertyChangeListener, removePropertyChangeListener
public TLcdSwissObliqueMercator()
public TLcdSwissObliqueMercator(double aCentralMeridian, double aStandardParallel)
aCentralMeridian
- the value for the central meridian property.aStandardParallel
- the value for the standard parallel property.public void setStandardParallel(double aStandardParallel)
ILcdObliqueCylindrical
ILcdObliqueCylindrical
to
the parallel with latitude aLatitude
.setStandardParallel
in interface ILcdObliqueCylindrical
setStandardParallel
in class ALcdObliqueCylindrical
aStandardParallel
- The new standardParallel value.ILcdObliqueCylindrical.getStandardParallel()
public void setCentralMeridian(double aCentralMeridian)
ILcdObliqueCylindrical
ILcdObliqueCylindrical
to
the meridian with longitude aLongitude
.setCentralMeridian
in interface ILcdObliqueCylindrical
setCentralMeridian
in class ALcdObliqueCylindrical
aCentralMeridian
- The new centralMeridian value.ILcdObliqueCylindrical.getCentralMeridian()
public void setAzimuth(double aAzimuth)
setAzimuth
in interface ILcdObliqueCylindrical
setAzimuth
in class ALcdObliqueCylindrical
aAzimuth
- 90 degrees.ILcdObliqueCylindrical.getAzimuth()
protected void calculateCachedValues()
ALcdObliqueCylindrical
calculateCachedValues
in class ALcdObliqueCylindrical
public boolean isAllInBounds()
ILcdProjection
ILcdProjection
and all (x,y ) coordinates are bounded this is true
.
All ILcdProjection
objects have bounded (x,y )
coordinates because the projection is cut off if necessary.true
if all LonLatPoints are within the bounds of
the projection, false
otherwise.public void lonlatheight2worldOnSphereSFCT(ILcdPoint aLLHP, double aRadius, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException
ILcdProjection
ILcd2DEditablePoint
on a sphere into the
cartesian coordinate system of the projection.aLLHP
- point to be projected.aRadius
- radius of the sphere (meters).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 world2lonlatOnSphereSFCT(ILcdPoint aXYPoint, double aRadius, ILcd2DEditablePoint aLLPointSFCT) throws TLcdOutOfBoundsException
ILcdProjection
ILcdPoint
from the cartesian coordinate system
of the projection into an ILcd2DEditablePoint
onto a sphere.aXYPoint
- projected point for which the corresponding geodetic point is sought.aRadius
- radius of the sphere (meters).aLLPointSFCT
- 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 boolean inLonLatBounds(ILcdPoint aLLHP)
ILcdProjection
ILcdPoint
is inside the valid area of geodetic
coordinates of the projection. The valid area is determined by the
LonLatPoints that are visible and for which the corresponding cartesian
coordinate is within the boundaries.aLLHP
- ILcdPoint
to be checked upon.true
if valid, false
if invalid.public boolean inWorldBoundsOnSphere(ILcdPoint aXYPoint, double aRadius)
ILcdProjection
ILcdPoint
is inside the valid cartesian area of
the projection. The valid cartesian area is determined naturally by the
projection bounds or by an artificial introduced boundary limit because
some cartesian points are at infinity. The shape of the valid cartesian
area is in many cases rectangular or circular although it might be more
complex.aXYPoint
- point to be checked upon.aRadius
- radius of the sphere.true
if valid, false
if invalid.public void world2DEditableBoundsOnSphereSFCT(double aRadius, ILcd2DEditableBounds aWorldBounds)
ILcdProjection
ILcd2DEditableBounds
object to the bounds of the projection
in world coordinates.aRadius
- radius of the sphere.aWorldBounds
- the bounds of the projection in world coordinates as side effect.public double[][] boundaryLons(double aLatitude)
ALcdProjection
boundaryLons
in interface ILcdProjection
boundaryLons
in class ALcdProjection
aLatitude
- latitude in decimal degrees and -90.0 <= aLat
<= 90.0.public double[][] boundaryLats(double aLongitude)
ALcdProjection
boundaryLats
in interface ILcdProjection
boundaryLats
in class ALcdProjection
aLongitude
- longitude in decimal degrees -180.0 <= lon <= 180.0 .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 ALcdProjection
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 aLLPointSFCT) throws TLcdOutOfBoundsException
ALcdProjection
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2lonlatOnEllipsoidSFCT
in interface ILcdProjection
world2lonlatOnEllipsoidSFCT
in class ALcdProjection
aXYPoint
- projected point for which the corresponding geodetic point is sought.aEllipsoid
- ellipsoid on which the geodetic coordinate is defined.aLLPointSFCT
- 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 Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class ALcdObliqueCylindrical
ILcdProjection
.public String toString()
String
representation of the Swiss Oblique Mercator projection.toString
in interface ILcdProjection
toString
in class Object
String
representation of the Swiss Oblique Mercator projection.