#include <ProjectionImpl.h>
ProjectionImpl is a next to complete implementation of Projection, storing all parameters as a vector<CDMAttribute>. Implementations only need to implement a constructor calling the ProjectionImpl("proj-name") and the method getProj4ProjectionPart()
- Note
- the implemented projection needs to get made visible in Projection::create() and Projection::createByProj4
virtual MetNoFimex::ProjectionImpl::~ProjectionImpl |
( |
| ) |
|
|
virtual |
MetNoFimex::ProjectionImpl::ProjectionImpl |
( |
std::string |
name, |
|
|
bool |
isDegree |
|
) |
| |
|
explicitprotected |
virtual void MetNoFimex::ProjectionImpl::addParameter |
( |
CDMAttribute |
attribute | ) |
|
|
virtual |
Add the numeric value of a parameter named name as replaceName to oproj, e.g. name = false_easting, replaceName = +x_0, sets "+x_0=... " Assume only one value at maximum
- Parameters
-
outStream | |
name | the parameters name |
replaceName | the name to use in the stream to the parameter, defaults to original name ("") |
- Returns
- true if parameter found and set
virtual const std::string& MetNoFimex::ProjectionImpl::getName |
( |
| ) |
const |
|
virtual |
virtual std::string MetNoFimex::ProjectionImpl::getProj4EarthString |
( |
| ) |
const |
|
virtual |
add the pure projection parameters for proj4 to the stream, i.e. no earth definitions, and no +no_defs
Implemented in MetNoFimex::RotatedLatitudeLongitudeProjection, MetNoFimex::UnknownToFgdcProjection, MetNoFimex::AlbersConicalEqualAreaProjection, MetNoFimex::AzimuthalEquidistantProjection, MetNoFimex::LambertAzimuthalEqualAreaProjection, MetNoFimex::LambertConformalConicProjection, MetNoFimex::LambertCylindricalEqualAreaProjection, MetNoFimex::LatitudeLongitudeProjection, MetNoFimex::OrthographicProjection, MetNoFimex::StereographicProjection, MetNoFimex::VerticalPerspectiveProjection, MetNoFimex::MercatorProjection, and MetNoFimex::TransverseMercatorProjection.
virtual std::string MetNoFimex::ProjectionImpl::getProj4String |
( |
| ) |
const |
|
virtual |
get the proj4 string defined by the parameters. If a parameter named 'proj4' exists, that one will be used and all other parameters will be ignored.
- Note
- Implementors should not overwrite this method, but the protected getProj4ProjectionPart() method
Implements MetNoFimex::Projection.
virtual bool MetNoFimex::ProjectionImpl::isDegree |
( |
| ) |
const |
|
virtual |
check if the coordinates belonging to this projection are in degree (otherwise metrical)
Implements MetNoFimex::Projection.
add the attributes describing the earth from a proj4-string to the outAttrs
- Parameters
-
proj4String | string as used for proj4 |
attrList | output list of CDMAttributes |
static bool MetNoFimex::ProjectionImpl::proj4ProjectionMatchesName |
( |
const std::string & |
proj4String, |
|
|
const std::string & |
name |
|
) |
| |
|
staticprotected |
match the +proj= part of a proj4 string
virtual void MetNoFimex::ProjectionImpl::removeParameter |
( |
std::string |
paramName | ) |
|
|
virtual |
virtual std::string MetNoFimex::ProjectionImpl::toString |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following file: