public class TLcdObliqueMercator extends ALcdObliqueCylindrical
Oblique Mercator projection for the State Plane Coordinate System. There are several ways to define this projection. Only the one using an origin and an azimuth at that origin is considered now.
true
along the chosen central line.true
along a great circle at an oblique angle or along two straight
lines parallel to the chosen central line.
ILcdProjection projection =
new TLcdObliqueMercator(-30.0, 20.0, 30.0);
The equations of the oblique mercator projection are taken from [Snyder1987].
Modifier and Type | Class and Description |
---|---|
static class |
TLcdObliqueMercator.Variant
The variant of this projection.
|
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
TLcdObliqueMercator()
Constructs a oblique mercator projection.
|
TLcdObliqueMercator(double aCentralMeridian,
double aStandardParallel,
double aAzimuth)
Constructs a oblique mercator projection.
|
TLcdObliqueMercator(double aCentralMeridian,
double aStandardParallel,
double aAzimuth,
TLcdObliqueMercator.Variant aVariant) |
Modifier and Type | Method and Description |
---|---|
double[][] |
boundaryLats(double lon)
Default implementation.
|
double[][] |
boundaryLons(double lat)
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 |
equals(Object o)
Checks if this
ILcdProjection equals some other Object. |
TLcdObliqueMercator.Variant |
getVariant()
Returns the variant of this projection.
|
int |
hashCode() |
boolean |
inLonLatBounds(ILcdPoint aLLP)
Checks if an
ILcdPoint is inside the valid area of geodetic
coordinates of the projection. |
boolean |
inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid)
Default implementation calls
inWorldBoundsOnSphere with
aEllipsoid.getAuxRadius() as sphere radius. |
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 . |
boolean |
isContinuous()
An
ILcdProjection is continuous if there are no interruptions
in the world coordinates. |
void |
loadProperties(String aPrefix,
Properties aProperty)
Loads the 3 properties of an
ALcdObliqueCylindrical : the
centralMeridian, the azimuth and the standardParallel. |
void |
lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLP,
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)
Sets the azimuth of this
ILcdObliqueCylindrical to aAzimuth . |
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 oblique mercator projection. |
void |
world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid,
ILcd2DEditableBounds aWorldBoundsSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
world2DEditableBoundsOnSphereSFCT(double aRadius,
ILcd2DEditableBounds aWorldBound)
Sets the
ILcd2DEditableBounds object to the bounds of the projection
in world coordinates. |
void |
world2lonlatOnEllipsoidSFCT(ILcdPoint aXYPoint,
ILcdEllipsoid aEllipsoid,
ILcd2DEditablePoint aLLPSFCT)
Default implementation calls
world2lonlatOnSphereSFCT with
aEllipsoid.getAuxRadius() as sphere radius. |
void |
world2lonlatOnSphereSFCT(ILcdPoint aXYPoint,
double aRadius,
ILcd2DEditablePoint aLLPSFCT)
Transforms an
ILcdPoint from the cartesian coordinate system
of the projection into an ILcd2DEditablePoint onto a sphere. |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertySFCT)
Writes the 3 properties of an
ALcdObliqueCylindrical : the
centralMeridian, the azimuth and the standardParallel. |
getAzimuth, getCentralMeridian, getOrigin, getStandardParallel
addPropertyChangeListener, firePropertyChangeEvent, removePropertyChangeListener
finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, removePropertyChangeListener
public TLcdObliqueMercator()
public TLcdObliqueMercator(double aCentralMeridian, double aStandardParallel, double aAzimuth)
aCentralMeridian
- the value for the central meridian property.aStandardParallel
- the value for the standard parallel property.aAzimuth
- the value for the azimuth property.public TLcdObliqueMercator(double aCentralMeridian, double aStandardParallel, double aAzimuth, TLcdObliqueMercator.Variant aVariant)
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)
ILcdObliqueCylindrical
ILcdObliqueCylindrical
to aAzimuth
.setAzimuth
in interface ILcdObliqueCylindrical
setAzimuth
in class ALcdObliqueCylindrical
aAzimuth
- The new azimuth value.ILcdObliqueCylindrical.getAzimuth()
public TLcdObliqueMercator.Variant getVariant()
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 aLLPSFCT) 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).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 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 boolean isContinuous()
ILcdProjection
ILcdProjection
is continuous if there are no interruptions
in the world coordinates. Most projections are continuous.isContinuous
in interface ILcdProjection
isContinuous
in class ALcdObliqueCylindrical
true
if the projection is continuous,
false
otherwise.public boolean inLonLatBounds(ILcdPoint aLLP)
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.aLLP
- ILcdPoint
to be checked upon.true
if valid, false
if invalid.public double[][] boundaryLons(double lat)
ALcdProjection
boundaryLons
in interface ILcdProjection
boundaryLons
in class ALcdProjection
lat
- latitude in decimal degrees and -90.0 <= aLat
<= 90.0.public double[][] boundaryLats(double lon)
ALcdProjection
boundaryLats
in interface ILcdProjection
boundaryLats
in class ALcdProjection
lon
- longitude in decimal degrees -180.0 <= lon <= 180.0 .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 aWorldBound)
ILcdProjection
ILcd2DEditableBounds
object to the bounds of the projection
in world coordinates.aRadius
- radius of the sphere.aWorldBound
- the bounds of the projection in world coordinates as side effect.protected void calculateCachedValues()
ALcdObliqueCylindrical
calculateCachedValues
in class ALcdObliqueCylindrical
public void lonlatheight2worldOnEllipsoidSFCT(ILcdPoint aLLP, ILcdEllipsoid aEllipsoid, ILcd2DEditablePoint aXYPointSFCT) throws TLcdOutOfBoundsException
ALcdProjection
lonlatheight2worldOnEllipsoidSFCT
with aEllipsoid.getAuxRadius()
as sphere radius.lonlatheight2worldOnEllipsoidSFCT
in interface ILcdProjection
lonlatheight2worldOnEllipsoidSFCT
in class ALcdProjection
aLLP
- 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 ALcdProjection
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 boolean inWorldBoundsOnEllipsoid(ILcdPoint aXYPoint, ILcdEllipsoid aEllipsoid)
ALcdProjection
inWorldBoundsOnSphere
with
aEllipsoid.getAuxRadius()
as sphere radius.inWorldBoundsOnEllipsoid
in interface ILcdProjection
inWorldBoundsOnEllipsoid
in class ALcdProjection
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 void world2DEditableBoundsOnEllipsoidSFCT(ILcdEllipsoid aEllipsoid, ILcd2DEditableBounds aWorldBoundsSFCT)
ALcdProjection
world2lonlatOnSphereSFCT
with
aEllipsoid.getAuxRadius()
as sphere radius.world2DEditableBoundsOnEllipsoidSFCT
in interface ILcdProjection
world2DEditableBoundsOnEllipsoidSFCT
in class ALcdProjection
aEllipsoid
- ellipsoid considered.aWorldBoundsSFCT
- the bounds of the projection in world coordinates as side effect.public Object clone()
ILcdProjection
ILcdProjection
.clone
in interface ILcdProjection
clone
in class ALcdObliqueCylindrical
ILcdProjection
.public String toString()
String
representation of the oblique mercator projection.toString
in interface ILcdProjection
toString
in class Object
String
representation of the oblique mercator projection.public boolean equals(Object o)
ILcdProjection
ILcdProjection
equals some other Object.equals
in interface ILcdProjection
equals
in class ALcdObliqueCylindrical
o
- Object to compare with.ILcdProjection
class and having the same
projection properties, false otherwise.public int hashCode()
hashCode
in class ALcdObliqueCylindrical
public void loadProperties(String aPrefix, Properties aProperty) throws IllegalArgumentException
ALcdObliqueCylindrical
ALcdObliqueCylindrical
: the
centralMeridian, the azimuth and the standardParallel. This method will,
given aPrefix, analyze the aProperties object to set the properties of this
ALcdObliqueCylindrical
. The values of following keys are
retrieved:
loadProperties
in interface ILcdProjection
loadProperties
in class ALcdObliqueCylindrical
aPrefix
- prefix of the property names.aProperty
- Properties object containing the serialized properties.IllegalArgumentException
- if the projection cannot be created.public void writePropertiesSFCT(String aPrefix, Properties aPropertySFCT)
ALcdObliqueCylindrical
ALcdObliqueCylindrical
: the
centralMeridian, the azimuth and the standardParallel. This method will,
given aPrefix, store the properties of this ALcdObliqueCylindrical
into the aProperties object. The values of following keys are stored:
writePropertiesSFCT
in interface ILcdProjection
writePropertiesSFCT
in class ALcdObliqueCylindrical
aPrefix
- prefix for the property names.aPropertySFCT
- Properties object to store the serialized properties by side effect.