MI - Fimex
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
MetNoFimex::Projection Class Referenceabstract

#include <fimex/coordSys/Projection.h>

Inheritance diagram for MetNoFimex::Projection:
MetNoFimex::CDMNamedEntity MetNoFimex::ProjectionImpl MetNoFimex::AlbersConicalEqualAreaProjection MetNoFimex::AzimuthalEquidistantProjection MetNoFimex::LambertAzimuthalEqualAreaProjection MetNoFimex::LambertConformalConicProjection MetNoFimex::LambertCylindricalEqualAreaProjection MetNoFimex::LatitudeLongitudeProjection MetNoFimex::MercatorProjection MetNoFimex::OrthographicProjection MetNoFimex::RotatedLatitudeLongitudeProjection MetNoFimex::StereographicProjection MetNoFimex::TransverseMercatorProjection MetNoFimex::UnknownToFgdcProjection MetNoFimex::VerticalPerspectiveProjection

Public Member Functions

virtual ~Projection ()
 
virtual std::vector< CDMAttributegetParameters () const =0
 
virtual void addParameter (CDMAttribute attribute)=0
 
virtual void addParameters (std::vector< CDMAttribute > attributes)=0
 
virtual void removeParameter (std::string paramName)=0
 
virtual const std::stringgetName () const =0
 
virtual bool isDegree () const =0
 
virtual std::string getProj4String () const =0
 
virtual std::string getProj4EarthString () const =0
 
virtual void convertToLonLat (std::vector< double > &xVals, std::vector< double > &yVals) const throw (CDMException)
 
virtual void convertFromLonLat (std::vector< double > &xVals, std::vector< double > &yVals) const throw (CDMException)
 
virtual std::string toString () const =0
 
virtual bool operator== (const Projection &b) const
 
- Public Member Functions inherited from MetNoFimex::CDMNamedEntity
virtual ~CDMNamedEntity ()=0
 

Static Public Member Functions

static boost::shared_ptr< Projectioncreate (std::vector< CDMAttribute >)
 
static boost::shared_ptr< ProjectioncreateByProj4 (const std::string &projStr)
 

Protected Member Functions

 Projection ()
 

Detailed Description

A projection describes a projection of the earth surface from one system to another. If not mentioned otherwise, all parameters should follow CF-1.x

Constructor & Destructor Documentation

virtual MetNoFimex::Projection::~Projection ( )
inlinevirtual
MetNoFimex::Projection::Projection ( )
inlineprotected

Member Function Documentation

virtual void MetNoFimex::Projection::addParameter ( CDMAttribute  attribute)
pure virtual

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual void MetNoFimex::Projection::addParameters ( std::vector< CDMAttribute attributes)
pure virtual

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual void MetNoFimex::Projection::convertFromLonLat ( std::vector< double > &  xVals,
std::vector< double > &  yVals 
) const
throw (CDMException
)
virtual

convert two vectors of values in the projection to latitude and longitude in degree. The earth ellipsoid will be the same as the input.

Parameters
xValslongitude input in degree, output of the projection axis in meter or degree
yValslatitude input in degree, output of the projection axis in meter or degree
Warning
the values will be converted in place

Referenced by ~Projection().

virtual void MetNoFimex::Projection::convertToLonLat ( std::vector< double > &  xVals,
std::vector< double > &  yVals 
) const
throw (CDMException
)
virtual

convert two vectors of values in the projection to latitude and longitude in degree. The earth ellipsoid will be the same as the input.

Parameters
xValsinput of the projection axis in meter or degree, output is longitude
yValsinput of the projection axis in meter or degree, output is latitude
Warning
the values will be converted in place

Referenced by ~Projection().

static boost::shared_ptr<Projection> MetNoFimex::Projection::create ( std::vector< CDMAttribute )
static

create a projection from some CDMAttributes

Referenced by ~Projection().

static boost::shared_ptr<Projection> MetNoFimex::Projection::createByProj4 ( const std::string projStr)
static

create a projection from a proj4 string

Referenced by ~Projection().

virtual const std::string& MetNoFimex::Projection::getName ( ) const
pure virtual

get the projection name

Implements MetNoFimex::CDMNamedEntity.

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual std::vector<CDMAttribute> MetNoFimex::Projection::getParameters ( ) const
pure virtual

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual std::string MetNoFimex::Projection::getProj4EarthString ( ) const
pure virtual

get the parts of the proj4 string defining the earth.

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual std::string MetNoFimex::Projection::getProj4String ( ) const
pure virtual

get a proj4 string

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual bool MetNoFimex::Projection::isDegree ( ) const
pure virtual

check if the coordinates belonging to this projection are in degree (otherwise metrical)

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual bool MetNoFimex::Projection::operator== ( const Projection b) const
virtual

Comparison of two projections, implemented using the toString() function. This function does not guarantee that two projections are physically equal.

Referenced by ~Projection().

virtual void MetNoFimex::Projection::removeParameter ( std::string  paramName)
pure virtual

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().

virtual std::string MetNoFimex::Projection::toString ( ) const
pure virtual

get a string representation

Note
this should be implemented as unique as possible, i.e.

Implemented in MetNoFimex::ProjectionImpl.

Referenced by ~Projection().


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