isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
isce3::core::ProjectionBase Class Referenceabstract

Abstract base class for individual projections. More...

#include <Projections.h>

Inheritance diagram for isce3::core::ProjectionBase:
isce3::core::CEA isce3::core::Geocent isce3::core::LonLat isce3::core::PolarStereo isce3::core::UTM

Public Member Functions

 ProjectionBase (int code)
 Value constructor with EPSG code as input. More...
 
int code () const
 Return EPSG code.
 
const Ellipsoidellipsoid () const
 Return underlying ellipsoid.
 
virtual void print () const =0
 Print function for debugging.
 
virtual int forward (const cartesian_t &llh, cartesian_t &xyz) const =0
 Function for transforming from LLH. More...
 
virtual int inverse (const cartesian_t &xyz, cartesian_t &llh) const =0
 Function for transforming to LLH. More...
 
Vec3 inverse (const Vec3 &native) const
 
virtual ~ProjectionBase ()
 Virtual destructor.
 

Detailed Description

Abstract base class for individual projections.

Internally, every derived class is expected to provide two functions. forward - To convert llh (radians) to expected projection system inverse - To convert expected projection system to llh (radians)

Constructor & Destructor Documentation

isce3::core::ProjectionBase::ProjectionBase ( int  code)
inline

Value constructor with EPSG code as input.

Ellipsoid is always initialized to standard WGS84 ellipse.

Member Function Documentation

virtual int isce3::core::ProjectionBase::forward ( const cartesian_t llh,
cartesian_t xyz 
) const
pure virtual

Function for transforming from LLH.

This is similar to fwd or fwd3d in PROJ.4

Parameters
[in]llhLon/Lat/Height - Lon and Lat are in radians
[out]xyzCoordinates in specified projection system

Implemented in isce3::core::CEA, isce3::core::PolarStereo, isce3::core::UTM, isce3::core::Geocent, and isce3::core::LonLat.

virtual int isce3::core::ProjectionBase::inverse ( const cartesian_t xyz,
cartesian_t llh 
) const
pure virtual

Function for transforming to LLH.

This is similar to inv or inv3d in PROJ.4

Parameters
[in]xyzCoordinates in specified projection system
[out]llhLat/Lon/Height - Lon and Lat are in radians

Implemented in isce3::core::CEA, isce3::core::PolarStereo, isce3::core::UTM, isce3::core::Geocent, and isce3::core::LonLat.


The documentation for this class was generated from the following file:

Generated for ISCE3.0 by doxygen 1.8.5.