OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimBonneProjection.h>
Public Member Functions | |
ossimBonneProjection (const ossimEllipsoid &ellipsoid=ossimEllipsoid(), const ossimGpt &origin=ossimGpt()) | |
ossimBonneProjection (const ossimEllipsoid &ellipsoid, const ossimGpt &origin, const double falseEasting, const double falseNorthing) | |
~ossimBonneProjection () | |
virtual ossimObject * | dup () const |
virtual ossimDpt | forward (const ossimGpt &worldPoint) const |
All map projections will convert the world coordinate to an easting northing (Meters). More... | |
virtual ossimGpt | inverse (const ossimDpt &projectedPoint) const |
Will take a point in meters and convert it to ground. More... | |
virtual void | update () |
void | setFalseEasting (double falseEasting) |
void | setFalseNorthing (double falseNorthing) |
void | setFalseEastingNorthing (double falseEasting, double falseNorthing) |
double | getFalseEasting () const |
double | getFalseNorthing () const |
void | setDefaults () |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual bool | operator== (const ossimProjection &projection) const |
Returns TRUE if principal parameters are within epsilon tolerance. More... | |
![]() | |
ossimMapProjection (const ossimEllipsoid &ellipsoid=ossimEllipsoid(), const ossimGpt &origin=ossimGpt()) | |
ossimMapProjection (const ossimMapProjection &src) | |
virtual ossimGpt | origin () const |
virtual ossimDpt | worldToLineSample (const ossimGpt &worldPoint) const |
virtual void | worldToLineSample (const ossimGpt &worldPoint, ossimDpt &lineSample) const |
virtual ossimGpt | lineSampleToWorld (const ossimDpt &projectedPoint) const |
virtual void | lineSampleToWorld (const ossimDpt &projectedPoint, ossimGpt &gpt) const |
virtual void | lineSampleHeightToWorld (const ossimDpt &lineSampPt, const double &heightAboveEllipsoid, ossimGpt &worldPt) const |
This is the pure virtual that projects the image point to the given elevation above ellipsoid, thereby bypassing reference to a DEM. More... | |
virtual void | lineSampleToEastingNorthing (const ossimDpt &liineSample, ossimDpt &eastingNorthing) const |
virtual void | eastingNorthingToLineSample (const ossimDpt &eastingNorthing, ossimDpt &lineSample) const |
virtual void | eastingNorthingToWorld (const ossimDpt &eastingNorthing, ossimGpt &worldPt) const |
virtual double | getStandardParallel1 () const |
Derived classes should implement as needed. More... | |
virtual double | getStandardParallel2 () const |
Derived classes should implement as needed. More... | |
virtual void | setPcsCode (ossim_uint32 pcsCode) |
virtual ossim_uint32 | getPcsCode () const |
Returns the EPSG PCS code or 32767 if the projection is a custom (non-EPSG) projection. More... | |
virtual ossimString | getProjectionName () const |
Returns the projection name. More... | |
virtual double | getA () const |
ACCESS METHODS: More... | |
virtual double | getB () const |
virtual double | getF () const |
virtual ossimDpt | getMetersPerPixel () const |
virtual const ossimDpt & | getDecimalDegreesPerPixel () const |
Returns decimal degrees per pixel as an ossimDpt with "x" representing longitude and "y" representing latitude. More... | |
virtual const ossimDpt & | getUlEastingNorthing () const |
virtual const ossimGpt & | getUlGpt () const |
virtual const ossimDatum * | getDatum () const |
const ossimEllipsoid & | getEllipsoid () const |
const ossimGpt & | getOrigin () const |
virtual bool | isGeographic () const |
virtual void | applyScale (const ossimDpt &scale, bool recenterTiePoint) |
Applies scale to theDeltaLonPerPixel, theDeltaLatPerPixel and theMetersPerPixel data members (eg: theDeltaLonPerPixel *= scale.x). More... | |
virtual void | setEllipsoid (const ossimEllipsoid &ellipsoid) |
SET METHODS: More... | |
virtual void | setAB (double a, double b) |
virtual void | setDatum (const ossimDatum *datum) |
Sets theDatum to datum. More... | |
virtual void | setOrigin (const ossimGpt &origin) |
Sets theOrigin to origin. More... | |
virtual void | setMetersPerPixel (const ossimDpt &gsd) |
virtual void | setDecimalDegreesPerPixel (const ossimDpt &gsd) |
virtual void | setUlTiePoints (const ossimGpt &gpt) |
virtual void | setUlTiePoints (const ossimDpt &eastingNorthing) |
virtual void | setUlEastingNorthing (const ossimDpt &ulEastingNorthing) |
virtual void | setUlGpt (const ossimGpt &ulGpt) |
virtual void | assign (const ossimProjection &aProjection) |
virtual std::ostream & | print (std::ostream &out) const |
Prints data members to stream. More... | |
virtual void | computeDegreesPerPixel () |
Computes the approximate resolution in degrees/pixel. More... | |
virtual void | computeMetersPerPixel () |
This will go from the ground point and give you an approximate meters per pixel. More... | |
void | setMatrix (double rotation, const ossimDpt &scale, const ossimDpt &translation) |
void | setMatrixScale (const ossimDpt &scale) |
void | setMatrixRotation (double rotation) |
void | setMatrixTranslation (const ossimDpt &translation) |
void | snapTiePointTo (ossim_float64 multiple, ossimUnitType unitType) |
Utility method to snap the tie point to some multiple. More... | |
void | snapTiePointToOrigin () |
void | setElevationLookupFlag (bool flag) |
bool | getElevationLookupFlag () const |
ossimUnitType | getModelTransformUnitType () const |
void | setModelTransformUnitType (ossimUnitType unit) |
bool | hasModelTransform () const |
virtual bool | isAffectedByElevation () const |
Implementation of pure virtual ossimProjection::isAffectedByElevation method. More... | |
void | setProjectionUnits (ossimUnitType units) |
ossimUnitType | getProjectionUnits () const |
OSSIM considers all map projection coordinates (including false eastings and northings) to be in meters. More... | |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
![]() | |
ossimProjection () | |
virtual | ~ossimProjection () |
virtual void | getRoundTripError (const ossimDpt &imagePoint, ossimDpt &errorResult) const |
virtual void | getRoundTripError (const ossimGpt &groundPoint, ossimDpt &errorResult) const |
virtual void | getGroundClipPoints (ossimGeoPolygon &gpts) const |
virtual bool | operator!= (const ossimProjection &projection) const |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
Private Member Functions | |
long | Set_Bonne_Parameters (double a, double f, double Origin_Latitude, double Central_Meridian, double False_Easting, double False_Northing) |
void | Get_Bonne_Parameters (double *a, double *f, double *Origin_Latitude, double *Central_Meridian, double *False_Easting, double *False_Northing) const |
long | Convert_Geodetic_To_Bonne (double Latitude, double Longitude, double *Easting, double *Northing) const |
long | Convert_Bonne_To_Geodetic (double Easting, double Northing, double *Latitude, double *Longitude) const |
Private Attributes | |
double | Bonn_a |
double | Bonn_f |
double | es2 |
double | es4 |
double | es6 |
double | M1 |
double | m1 |
double | c0 |
double | c1 |
double | c2 |
double | c3 |
double | a0 |
double | a1 |
double | a2 |
double | a3 |
double | Bonn_Origin_Lat |
double | Bonn_Origin_Long |
double | Bonn_False_Northing |
double | Bonn_False_Easting |
double | Sin_Bonn_Origin_Lat |
double | Bonn_am1sin |
double | Bonn_Max_Easting |
double | Bonn_Min_Easting |
double | Bonn_Delta_Northing |
Additional Inherited Members | |
![]() | |
virtual | ~ossimMapProjection () |
void | updateFromTransform () |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
ossimEllipsoid | theEllipsoid |
This method verifies that the projection parameters match the current pcs code. More... | |
ossimGpt | theOrigin |
const ossimDatum * | theDatum |
This is only set if we want to have built in datum shifting. More... | |
ossimDpt | theMetersPerPixel |
Holds the number of meters per pixel. More... | |
ossimDpt | theDegreesPerPixel |
Hold the decimal degrees per pixel. More... | |
ossimGpt | theUlGpt |
Hold tie point in decimal degrees. More... | |
ossimDpt | theUlEastingNorthing |
Hold tie point as easting northing. More... | |
ossimDpt | theFalseEastingNorthing |
Hold the false easting northing. More... | |
ossim_uint32 | thePcsCode |
Projection Coordinate System(PCS) code. More... | |
bool | theElevationLookupFlag |
ossimMatrix4x4 | theModelTransform |
ossimMatrix4x4 | theInverseModelTransform |
ossimUnitType | theModelTransformUnitType |
ossimUnitType | theProjectionUnits |
Linear units of the projection as indicated in the projection's specification: More... | |
![]() | |
ossimErrorCode | theErrorStatus |
Definition at line 17 of file ossimBonneProjection.h.
ossimBonneProjection::ossimBonneProjection | ( | const ossimEllipsoid & | ellipsoid = ossimEllipsoid() , |
const ossimGpt & | origin = ossimGpt() |
||
) |
Definition at line 41 of file ossimBonneProjection.cpp.
References setDefaults(), and update().
ossimBonneProjection::ossimBonneProjection | ( | const ossimEllipsoid & | ellipsoid, |
const ossimGpt & | origin, | ||
const double | falseEasting, | ||
const double | falseNorthing | ||
) |
Definition at line 49 of file ossimBonneProjection.cpp.
References Bonn_Delta_Northing, Bonn_False_Easting, Bonn_False_Northing, and update().
|
inline |
Definition at line 27 of file ossimBonneProjection.h.
|
private |
The function Convert_Bonne_To_Geodetic converts Bonne projection easting and northing coordinates to geodetic (latitude and longitude) coordinates, according to the current ellipsoid and Bonne projection coordinates. If any errors occur, the error code(s) are returned by the function, otherwise BONN_NO_ERROR is returned.
Easting : Easting (X) in meters (input) Northing : Northing (Y) in meters (input) Latitude : Latitude (phi) in radians (output) Longitude : Longitude (lambda) in radians (output)
Definition at line 420 of file ossimBonneProjection.cpp.
References a0, a1, a2, a3, Bonn_a, Bonn_am1sin, Bonn_False_Easting, Bonn_False_Northing, BONN_m, BONN_NO_ERROR, Bonn_Origin_Lat, Bonn_Origin_Long, c0, COEFF_TIMES_BONN_SIN, Convert_Sinusoidal_To_Geodetic(), FLOAT_EQ, M1, M_PI, and PI_OVER_2.
Referenced by inverse().
|
private |
The function Convert_Geodetic_To_Bonne converts geodetic (latitude and longitude) coordinates to Bonne projection easting, and northing coordinates, according to the current ellipsoid and Bonne projection parameters. If any errors occur, the error code(s) are returned by the function, otherwise BONN_NO_ERROR is returned.
Latitude : Latitude (phi) in radians (input) Longitude : Longitude (lambda) in radians (input) Easting : Easting (X) in meters (output) Northing : Northing (Y) in meters (output)
Definition at line 340 of file ossimBonneProjection.cpp.
References Bonn_a, Bonn_am1sin, Bonn_False_Easting, Bonn_False_Northing, BONN_m, BONN_M, BONN_NO_ERROR, Bonn_Origin_Lat, Bonn_Origin_Long, c0, c1, c2, c3, COEFF_TIMES_BONN_SIN, Convert_Geodetic_To_Sinusoidal(), FLOAT_EQ, M1, M_PI, PI_OVER_2, and TWO_PI.
Referenced by forward().
|
inlinevirtual |
Implements ossimProjection.
Definition at line 28 of file ossimBonneProjection.h.
All map projections will convert the world coordinate to an easting northing (Meters).
Implements ossimMapProjection.
Definition at line 123 of file ossimBonneProjection.cpp.
References ossimGpt::changeDatum(), ossimDatum::code(), Convert_Geodetic_To_Bonne(), ossimGpt::datum(), ossimGpt::latr(), ossimGpt::lonr(), and ossimMapProjection::theDatum.
|
private |
The function Get_Bonne_Parameters returns the current ellipsoid parameters and Bonne projection parameters.
a : Semi-major axis of ellipsoid, in meters (output) f : Flattening of ellipsoid (output) Origin_Latitude : Latitude in radians at which the (output) point scale factor is 1.0 Central_Meridian : Longitude in radians at the center of (output) the projection False_Easting : A coordinate value in meters assigned to the central meridian of the projection. (output) False_Northing : A coordinate value in meters assigned to the origin latitude of the projection (output)
Definition at line 307 of file ossimBonneProjection.cpp.
References Bonn_a, Bonn_f, Bonn_False_Easting, Bonn_False_Northing, Bonn_Origin_Lat, and Bonn_Origin_Long.
|
inlinevirtual |
Reimplemented from ossimMapProjection.
Definition at line 53 of file ossimBonneProjection.h.
|
inlinevirtual |
Reimplemented from ossimMapProjection.
Definition at line 54 of file ossimBonneProjection.h.
Will take a point in meters and convert it to ground.
Implements ossimMapProjection.
Definition at line 112 of file ossimBonneProjection.cpp.
References Convert_Bonne_To_Geodetic(), DEG_PER_RAD, ossimMapProjection::theDatum, ossimDpt::x, and ossimDpt::y.
|
virtual |
Method to the load (recreate) the state of an object from a keyword list. Return true if ok or false on error.
Reimplemented from ossimMapProjection.
Definition at line 149 of file ossimBonneProjection.cpp.
References Bonn_False_Easting, Bonn_False_Northing, ossimKeywordlist::find(), ossimMapProjection::loadState(), setDefaults(), STATIC_TYPE_NAME, ossimMapProjection::theFalseEastingNorthing, ossimKeywordNames::TYPE_KW, update(), ossimDpt::x, and ossimDpt::y.
|
virtual |
Returns TRUE if principal parameters are within epsilon tolerance.
Reimplemented from ossimMapProjection.
Definition at line 521 of file ossimBonneProjection.cpp.
References ossim::almostEqual(), Bonn_Delta_Northing, Bonn_False_Easting, and Bonn_False_Northing.
|
virtual |
Method to save the state of an object to a keyword list. Return true if ok or false on error.
Reimplemented from ossimMapProjection.
Definition at line 144 of file ossimBonneProjection.cpp.
References ossimMapProjection::saveState().
|
private |
The function Set_Bonne_Parameters receives the ellipsoid parameters and Bonne projcetion parameters as inputs, and sets the corresponding state variables. If any errors occur, the error code(s) are returned by the function, otherwise BONN_NO_ERROR is returned.
a : Semi-major axis of ellipsoid, in meters (input) f : Flattening of ellipsoid (input) Origin_Latitude : Latitude in radians at which the (input) point scale factor is 1.0 Central_Meridian : Longitude in radians at the center of (input) the projection False_Easting : A coordinate value in meters assigned to the central meridian of the projection. (input) False_Northing : A coordinate value in meters assigned to the origin latitude of the projection (input)
Definition at line 181 of file ossimBonneProjection.cpp.
References a0, a1, a2, a3, Bonn_a, Bonn_am1sin, Bonn_Delta_Northing, Bonn_f, Bonn_False_Easting, Bonn_False_Northing, BONN_m, BONN_M, Bonn_Max_Easting, Bonn_Min_Easting, BONN_NO_ERROR, Bonn_Origin_Lat, Bonn_Origin_Long, c0, c1, c2, c3, COEFF_TIMES_BONN_SIN, es2, es4, es6, M1, m1, Set_Sinusoidal_Parameters(), Sin_Bonn_Origin_Lat, and x.
Referenced by update().
void ossimBonneProjection::setDefaults | ( | ) |
Initialize all pramters to default and calls update for pre-computations.
Definition at line 97 of file ossimBonneProjection.cpp.
References Bonn_Delta_Northing, Bonn_False_Easting, Bonn_False_Northing, ossimGpt::latd(), and ossimMapProjection::theOrigin.
Referenced by loadState(), and ossimBonneProjection().
void ossimBonneProjection::setFalseEasting | ( | double | falseEasting | ) |
SetFalseEasting. The value is in meters. Update is then called so we can pre-compute paramters
Definition at line 77 of file ossimBonneProjection.cpp.
References Bonn_False_Easting, and update().
void ossimBonneProjection::setFalseEastingNorthing | ( | double | falseEasting, |
double | falseNorthing | ||
) |
Sets both false easting and northing values. The values are expected to be in meters. Update is then called so we can pre-compute paramters
Definition at line 89 of file ossimBonneProjection.cpp.
References Bonn_False_Easting, Bonn_False_Northing, and update().
void ossimBonneProjection::setFalseNorthing | ( | double | falseNorthing | ) |
SetFalseNorthing. The value is in meters. Update is then called so we can pre-compute paramters
Definition at line 83 of file ossimBonneProjection.cpp.
References Bonn_False_Northing, and update().
|
virtual |
Reimplemented from ossimMapProjection.
Definition at line 62 of file ossimBonneProjection.cpp.
References Bonn_False_Easting, Bonn_False_Northing, ossimEllipsoid::getA(), ossimEllipsoid::getFlattening(), ossimGpt::latr(), ossimGpt::lonr(), Set_Bonne_Parameters(), ossimMapProjection::theEllipsoid, ossimMapProjection::theFalseEastingNorthing, ossimMapProjection::theOrigin, ossimMapProjection::update(), ossimDpt::x, and ossimDpt::y.
Referenced by loadState(), ossimBonneProjection(), setFalseEasting(), setFalseEastingNorthing(), and setFalseNorthing().
|
mutableprivate |
Definition at line 93 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 94 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 95 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 96 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 82 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), Get_Bonne_Parameters(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 105 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 111 of file ossimBonneProjection.h.
Referenced by operator==(), ossimBonneProjection(), Set_Bonne_Parameters(), and setDefaults().
|
mutableprivate |
Definition at line 83 of file ossimBonneProjection.h.
Referenced by Get_Bonne_Parameters(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 103 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), Get_Bonne_Parameters(), loadState(), operator==(), ossimBonneProjection(), Set_Bonne_Parameters(), setDefaults(), setFalseEasting(), setFalseEastingNorthing(), and update().
|
mutableprivate |
Definition at line 102 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), Get_Bonne_Parameters(), loadState(), operator==(), ossimBonneProjection(), Set_Bonne_Parameters(), setDefaults(), setFalseEastingNorthing(), setFalseNorthing(), and update().
|
mutableprivate |
Definition at line 109 of file ossimBonneProjection.h.
Referenced by Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 110 of file ossimBonneProjection.h.
Referenced by Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 100 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), Get_Bonne_Parameters(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 101 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), Get_Bonne_Parameters(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 89 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 90 of file ossimBonneProjection.h.
Referenced by Convert_Geodetic_To_Bonne(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 91 of file ossimBonneProjection.h.
Referenced by Convert_Geodetic_To_Bonne(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 92 of file ossimBonneProjection.h.
Referenced by Convert_Geodetic_To_Bonne(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 84 of file ossimBonneProjection.h.
Referenced by Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 85 of file ossimBonneProjection.h.
Referenced by Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 86 of file ossimBonneProjection.h.
Referenced by Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 87 of file ossimBonneProjection.h.
Referenced by Convert_Bonne_To_Geodetic(), Convert_Geodetic_To_Bonne(), and Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 88 of file ossimBonneProjection.h.
Referenced by Set_Bonne_Parameters().
|
mutableprivate |
Definition at line 104 of file ossimBonneProjection.h.
Referenced by Set_Bonne_Parameters().