public class TLcdRPCProjection extends ALcdProjection
The coefficients are typically read from an an NITF RPC00B extension or from an RPC text file from GeoEye or DigitalGlobe.
ILcdModelReferenceDecoder decoder = new TLcdRPCModelReferenceDecoder();
ILcdModelReference reference = decoder.decode("image_rpc.txt");
fPropertyChangeDispatcher
EPSILON
Constructor and Description |
---|
TLcdRPCProjection()
Constructs a new RPC projection, without specifying input parameters.
|
TLcdRPCProjection(double aLineOffset,
double aSampleOffset,
double aLatitudeOffset,
double aLongitudeOffset,
double aHeightOffset,
double aLineScale,
double aSampleScale,
double aLatitudeScale,
double aLongitudeScale,
double aHeightScale,
double[] aLineNumeratorCoefficients,
double[] aLineDenominatorCoefficients,
double[] aSampleNumeratorCoefficients,
double[] aSampleDenominatorCoefficients)
Constructs a projection corresponding to the given input parameters.
|
TLcdRPCProjection(double aLineOffset,
double aSampleOffset,
double aLatitudeOffset,
double aLongitudeOffset,
double aHeightOffset,
double aLineScale,
double aSampleScale,
double aLatitudeScale,
double aLongitudeScale,
double aHeightScale,
double[] aLineNumeratorCoefficients,
double[] aLineDenominatorCoefficients,
double[] aSampleNumeratorCoefficients,
double[] aSampleDenominatorCoefficients,
int aRasterHeight)
Constructs a projection corresponding to the given RPC input parameters and an image height.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aO)
Checks if this
ILcdProjection equals some other Object. |
double |
getGeodeticHeightOffset()
Returns the height offset.
|
double |
getGeodeticHeightScale()
Returns the height scaling factor.
|
double |
getGeodeticLatitudeOffset()
Returns the latitude offset.
|
double |
getGeodeticLatitudeScale()
Returns the latitude scaling factor.
|
double |
getGeodeticLongitudeOffset()
Returns the longitude offset.
|
double |
getGeodeticLongitudeScale()
Returns the longitude scaling factor.
|
double[] |
getLineDenominatorCoefficients()
Returns the denominator coefficients of the row rational function.
|
double[] |
getLineNumeratorCoefficients()
Returns the numerator coefficients of the row rational function.
|
double |
getLineOffset()
Returns the offset of the world row coordinate.
|
double |
getLineScale()
Returns the world row coordinate scaling factor.
|
ILcdPoint |
getOrigin()
Origin of the projection is the
ILcd2DEditablePoint that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection. |
double[] |
getSampleDenominatorCoefficients()
Returns the denominator coefficients of the column rational function.
|
double[] |
getSampleNumeratorCoefficients()
Returns the numerator coefficients of the column rational function.
|
double |
getSampleOffset()
Returns the offset of the world column coordinate.
|
double |
getSampleScale()
Returns the world column coordinate scaling factor.
|
int |
hashCode() |
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 . |
boolean |
isContinuous()
An
ILcdProjection is continuous if there are no interruptions
in the world coordinates. |
void |
loadProperties(String aPrefix,
Properties aProperties)
The properties of an
ILcdProjection determine the projection
parameters that determine the plane, cylinder or cone on which the
projection is done. |
void |
lonlatheight2worldOnSphereSFCT(ILcdPoint aLLHP,
double aRadius,
ILcd2DEditablePoint aXYPointSFCT)
Transforms an
ILcd2DEditablePoint on a sphere into the
cartesian coordinate system of the projection. |
String |
toString()
String representation of this
ILcdProjection . |
void |
world2DEditableBoundsOnSphereSFCT(double aRadius,
ILcd2DEditableBounds aWorldBounds)
Sets the
ILcd2DEditableBounds object to the bounds of the projection
in world coordinates. |
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. |
void |
writePropertiesSFCT(String aPrefix,
Properties aPropertiesSFCT)
The properties of an
ILcdProjection determine the projection
parameters that determine the plane, cylinder or cone on which the
projection is done. |
addPropertyChangeListener, boundaryLats, boundaryLons, clone, firePropertyChangeEvent, inWorldBoundsOnEllipsoid, lonlatheight2worldOnEllipsoidSFCT, removePropertyChangeListener, world2DEditableBoundsOnEllipsoidSFCT, world2lonlatOnEllipsoidSFCT
public TLcdRPCProjection()
loadProperties
method. When not using the loadProperties
method, one of the other constructors should be used instead.public TLcdRPCProjection(double aLineOffset, double aSampleOffset, double aLatitudeOffset, double aLongitudeOffset, double aHeightOffset, double aLineScale, double aSampleScale, double aLatitudeScale, double aLongitudeScale, double aHeightScale, double[] aLineNumeratorCoefficients, double[] aLineDenominatorCoefficients, double[] aSampleNumeratorCoefficients, double[] aSampleDenominatorCoefficients)
aLineOffset
- the offset of the world row coordinateaSampleOffset
- the offset of the world column coordinateaLatitudeOffset
- the latitude offsetaLongitudeOffset
- the longitude offsetaHeightOffset
- the height offsetaLineScale
- the world row coordinate scaling factoraSampleScale
- the world column coordinate scaling factoraLatitudeScale
- the latitude scaling factoraLongitudeScale
- the longitude scaling factoraHeightScale
- the height scaling factoraLineNumeratorCoefficients
- the numerator coefficients of the row rational functionaLineDenominatorCoefficients
- the denominator coefficients of the row rational functionaSampleNumeratorCoefficients
- the numerator coefficients of the column rational functionaSampleDenominatorCoefficients
- the denominator coefficients of the column rational functionpublic TLcdRPCProjection(double aLineOffset, double aSampleOffset, double aLatitudeOffset, double aLongitudeOffset, double aHeightOffset, double aLineScale, double aSampleScale, double aLatitudeScale, double aLongitudeScale, double aHeightScale, double[] aLineNumeratorCoefficients, double[] aLineDenominatorCoefficients, double[] aSampleNumeratorCoefficients, double[] aSampleDenominatorCoefficients, int aRasterHeight)
aLineOffset
- the offset of the world row coordinateaSampleOffset
- the offset of the world column coordinateaLatitudeOffset
- the latitude offsetaLongitudeOffset
- the longitude offsetaHeightOffset
- the height offsetaLineScale
- the world row coordinate scaling factoraSampleScale
- the world column coordinate scaling factoraLatitudeScale
- the latitude scaling factoraLongitudeScale
- the longitude scaling factoraHeightScale
- the height scaling factoraLineNumeratorCoefficients
- the numerator coefficients of the row rational functionaLineDenominatorCoefficients
- the denominator coefficients of the row rational functionaSampleNumeratorCoefficients
- the numerator coefficients of the column rational functionaSampleDenominatorCoefficients
- the denominator coefficients of the column rational functionaRasterHeight
- the height of the raster using this projection. The y coordinates
will be subtracted from this value before (world2lonlatOnSphereSFCT) or after
(lonlatheight2worldOnSphereSFCT) performing the transformation.public double getLineOffset()
public double getSampleOffset()
public double getGeodeticLatitudeOffset()
public double getGeodeticLongitudeOffset()
public double getGeodeticHeightOffset()
public double getLineScale()
public double getSampleScale()
public double getGeodeticLatitudeScale()
public double getGeodeticLongitudeScale()
public double getGeodeticHeightScale()
public double[] getLineNumeratorCoefficients()
public double[] getLineDenominatorCoefficients()
public double[] getSampleNumeratorCoefficients()
public double[] getSampleDenominatorCoefficients()
public void loadProperties(String aPrefix, Properties aProperties)
ILcdProjection
ILcdProjection
determine the projection
parameters that determine the plane, cylinder or cone on which the
projection is done. The properties of an ILcdProjection
are of
course dependent on the projection. A common property for all ILcdprojection
objects is the origin of the projection. Other, more specific, properties
are standard parallels, azimuthal direction, perspective distance, ... .aPrefix
- prefix for property names.aProperties
- Properties object containing the serialized projection.public void writePropertiesSFCT(String aPrefix, Properties aPropertiesSFCT)
ILcdProjection
ILcdProjection
determine the projection
parameters that determine the plane, cylinder or cone on which the
projection is done. The properties of an ILcdProjection
are of
course dependent on the projection. A common property for all ILcdprojection
objects is the origin of the projection. Other, more specific, properties
are standard parallels, azimuthal direction, perspective distance,
... .aPrefix
- prefix for property names.aPropertiesSFCT
- Properties object in which to store the serialized
projection properties as side effect.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.true
if the projection is continuous,
false
otherwise.public ILcdPoint getOrigin()
ILcdProjection
ILcd2DEditablePoint
that
corresponds with origin (0, 0) of the cartesian coordinate system of the
projection.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 boolean equals(Object aO)
ILcdProjection
ILcdProjection
equals some other Object.equals
in interface ILcdProjection
equals
in class Object
aO
- Object to compare with.ILcdProjection
class and having the same
projection properties, false otherwise.public String toString()
ILcdProjection
ILcdProjection
.toString
in interface ILcdProjection
toString
in class Object
ILcdProjection
.