OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimCadrgProjection.h>
Public Member Functions | |
ossimCadrgProjection () | |
virtual ossimObject * | dup () const |
virtual ossimGpt | inverse (const ossimDpt &eastingNorthing) const |
Will take a point in meters and convert it to ground. More... | |
virtual ossimDpt | forward (const ossimGpt &latLon) const |
All map projections will convert the world coordinate to an easting northing (Meters). More... | |
virtual ossimDpt | worldToLineSample (const ossimGpt &worldPoint) const |
virtual ossimGpt | lineSampleToWorld (const ossimDpt &projectedPoint) const |
virtual void | worldToLineSample (const ossimGpt &worldPoint, ossimDpt &lineSample) const |
virtual void | lineSampleToWorld (const ossimDpt &projectedPoint, ossimGpt &gpt) const |
double | computeXPixConstant (double scale, long zone) const |
double | computeYPixConstant (double scale) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
ossimString | getProjectionName () const |
Returns the projection name. More... | |
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 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 | getFalseEasting () const |
virtual double | getFalseNorthing () 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 | update () |
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 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 |
Protected Member Functions | |
virtual | ~ossimCadrgProjection () |
void | computeParameters () |
![]() | |
virtual | ~ossimMapProjection () |
void | updateFromTransform () |
![]() | |
virtual | ~ossimReferenced () |
Static Protected Attributes | |
static double | theCadrgArcA [8] |
static double | theOldZoneExtents [10] |
static double | theNorthLimit = 90.0*M_PI/180.0 |
static double | theSouthLimit = -90.0*M_PI/180.0 |
Definition at line 15 of file ossimCadrgProjection.h.
ossimCadrgProjection::ossimCadrgProjection | ( | ) |
Definition at line 27 of file ossimCadrgProjection.cpp.
References computeParameters().
Referenced by dup().
|
protectedvirtual |
Definition at line 37 of file ossimCadrgProjection.cpp.
|
protected |
Definition at line 163 of file ossimCadrgProjection.cpp.
References computeXPixConstant(), computeYPixConstant(), theCadrgZone, theHeight, theMapScale, thePixelConstant, theUlLineSample, theWidth, ossimDpt::x, and ossimDpt::y.
Referenced by loadState(), and ossimCadrgProjection().
double ossimCadrgProjection::computeXPixConstant | ( | double | scale, |
long | zone | ||
) | const |
Definition at line 126 of file ossimCadrgProjection.cpp.
References theCadrgArcA.
Referenced by computeParameters().
double ossimCadrgProjection::computeYPixConstant | ( | double | scale | ) | const |
|
virtual |
Implements ossimProjection.
Definition at line 42 of file ossimCadrgProjection.cpp.
References ossimCadrgProjection().
All map projections will convert the world coordinate to an easting northing (Meters).
Implements ossimMapProjection.
Definition at line 65 of file ossimCadrgProjection.cpp.
References ossimGpt::changeDatum(), ossimDatum::code(), ossimGpt::datum(), and ossimMapProjection::theDatum.
|
inlinevirtual |
Returns the projection name.
Reimplemented from ossimMapProjection.
Definition at line 49 of file ossimCadrgProjection.h.
References ossimObject::getClassName().
Will take a point in meters and convert it to ground.
Implements ossimMapProjection.
Definition at line 57 of file ossimCadrgProjection.cpp.
References DEG_PER_RAD, and ossimMapProjection::theDatum.
Reimplemented from ossimMapProjection.
Definition at line 82 of file ossimCadrgProjection.cpp.
|
virtual |
METHOD: lineSampleToWorld() Performs the inverse projection from line, sample to ground (world):
Reimplemented from ossimMapProjection.
Definition at line 105 of file ossimCadrgProjection.cpp.
References ossimGpt::clampLat(), ossimGpt::clampLon(), ossimGpt::latd(), ossimGpt::lond(), ossimMapProjection::theOrigin, thePixelConstant, theUlLineSample, 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 267 of file ossimCadrgProjection.cpp.
References computeParameters(), ossimKeywordlist::find(), ossimGpt::latd(), ossimKeywordNames::LL_LAT_KW, ossimKeywordNames::LL_LON_KW, ossimProjection::loadState(), ossimGpt::lond(), ossimKeywordNames::LR_LAT_KW, ossimKeywordNames::LR_LON_KW, ossimKeywordNames::NUMBER_LINES_KW, ossimKeywordNames::NUMBER_SAMPLES_KW, theCadrgZone, theHeight, theLlGpt, theLrGpt, theMapScale, theUlGpt, theUrGpt, theWidth, ossimString::toDouble(), ossimString::toLong(), ossimKeywordNames::UL_LAT_KW, ossimKeywordNames::UL_LON_KW, ossimKeywordNames::UR_LAT_KW, ossimKeywordNames::UR_LON_KW, and ossimKeywordNames::ZONE_KW.
|
virtual |
Returns TRUE if principal parameters are within epsilon tolerance.
Reimplemented from ossimMapProjection.
Definition at line 407 of file ossimCadrgProjection.cpp.
References ossim::almostEqual(), theCadrgZone, theHeight, theLlGpt, theLrGpt, theUlGpt, theUrGpt, and theWidth.
|
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 188 of file ossimCadrgProjection.cpp.
References ossimKeywordlist::add(), ossimDatum::code(), ossimKeywordNames::DATUM_KW, ossimGpt::latd(), ossimKeywordNames::LL_LAT_KW, ossimKeywordNames::LL_LON_KW, ossimGpt::lond(), ossimKeywordNames::LR_LAT_KW, ossimKeywordNames::LR_LON_KW, ossimKeywordNames::NUMBER_LINES_KW, ossimKeywordNames::NUMBER_SAMPLES_KW, ossimProjection::saveState(), theCadrgZone, ossimMapProjection::theDatum, theHeight, theLlGpt, theLrGpt, theMapScale, theUlGpt, theUrGpt, theWidth, ossimKeywordNames::UL_LAT_KW, ossimKeywordNames::UL_LON_KW, ossimKeywordNames::UR_LAT_KW, ossimKeywordNames::UR_LON_KW, and ossimKeywordNames::ZONE_KW.
Reimplemented from ossimMapProjection.
Definition at line 48 of file ossimCadrgProjection.cpp.
|
virtual |
METHOD: worldToLineSample() Performs the forward projection from ground point to line, sample.
Reimplemented from ossimMapProjection.
Definition at line 91 of file ossimCadrgProjection.cpp.
References DEG_PER_RAD, ossimGpt::latd(), ossimGpt::lond(), ossimMapProjection::theOrigin, thePixelConstant, theUlLineSample, ossimDpt::x, and ossimDpt::y.
|
staticprotected |
Definition at line 63 of file ossimCadrgProjection.h.
Referenced by computeXPixConstant().
|
protected |
Definition at line 71 of file ossimCadrgProjection.h.
Referenced by computeParameters(), loadState(), operator==(), and saveState().
|
protected |
Definition at line 77 of file ossimCadrgProjection.h.
Referenced by computeParameters(), loadState(), operator==(), and saveState().
|
protected |
Definition at line 82 of file ossimCadrgProjection.h.
Referenced by loadState(), operator==(), and saveState().
|
protected |
Definition at line 83 of file ossimCadrgProjection.h.
Referenced by loadState(), operator==(), and saveState().
|
protected |
Definition at line 74 of file ossimCadrgProjection.h.
Referenced by computeParameters(), loadState(), and saveState().
|
staticprotected |
Definition at line 68 of file ossimCadrgProjection.h.
|
staticprotected |
Definition at line 66 of file ossimCadrgProjection.h.
|
protected |
Definition at line 73 of file ossimCadrgProjection.h.
Referenced by computeParameters(), lineSampleToWorld(), and worldToLineSample().
|
staticprotected |
Definition at line 69 of file ossimCadrgProjection.h.
|
protected |
Definition at line 81 of file ossimCadrgProjection.h.
Referenced by loadState(), operator==(), and saveState().
|
protected |
Definition at line 79 of file ossimCadrgProjection.h.
Referenced by computeParameters(), lineSampleToWorld(), and worldToLineSample().
|
protected |
Definition at line 84 of file ossimCadrgProjection.h.
Referenced by loadState(), operator==(), and saveState().
|
protected |
Definition at line 76 of file ossimCadrgProjection.h.
Referenced by computeParameters(), loadState(), operator==(), and saveState().