PROJ C++ API
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
osgeo::proj::datum::PrimeMeridian Class Referencefinal

The origin meridian from which longitude values are determined. More...

#include <datum.hpp>

Inheritance diagram for osgeo::proj::datum::PrimeMeridian:
Inheritance graph
[legend]
Collaboration diagram for osgeo::proj::datum::PrimeMeridian:
Collaboration graph
[legend]

Public Member Functions

const common::Anglelongitude () PROJ_CONST_DECL
 Return the longitude of the prime meridian. More...
 
bool isEquivalentTo (const util::IComparable *other, util::IComparable::Criterion criterion=util::IComparable::Criterion::STRICT) const override
 Returns whether an object is equivalent to another one. More...
 
- Public Member Functions inherited from osgeo::proj::common::IdentifiedObject
const metadata::IdentifierNNPtrname () PROJ_CONST_DECL
 Return the name of the object. More...
 
const std::string & nameStr () PROJ_CONST_DECL
 Return the name of the object. More...
 
const std::vector< metadata::IdentifierNNPtr > & identifiers () PROJ_CONST_DECL
 Return the identifier(s) of the object. More...
 
const std::vector< util::GenericNameNNPtr > & aliases () PROJ_CONST_DECL
 Return the alias(es) of the object.
 
const std::string & remarks () PROJ_CONST_DECL
 Return the remarks.
 
bool isDeprecated () PROJ_CONST_DECL
 Return whether the object is deprecated. More...
 
std::string alias () PROJ_CONST_DECL
 Return the (first) alias of the object as a string. More...
 
int getEPSGCode () PROJ_CONST_DECL
 Return the EPSG code. More...
 
bool isEPSG (int code) PROJ_CONST_DECL
 Return whether the object has a identifiers() in the EPSG code space.
 
- Public Member Functions inherited from osgeo::proj::io::IWKTExportable
std::string exportToWKT (WKTFormatter *formatter) const
 
- Public Member Functions inherited from osgeo::proj::io::IPROJStringExportable
std::string exportToPROJString (PROJStringFormatter *formatter) const
 Builds a PROJ string representation. More...
 

Static Public Member Functions

static PrimeMeridianNNPtr create (const util::PropertyMap &properties, const common::Angle &longitudeIn)
 Instanciate a PrimeMeridian. More...
 
- Static Public Member Functions inherited from osgeo::proj::common::IdentifiedObject
static IdentifiedObjectNNPtr create (const util::PropertyMap &properties)
 Instanciate a new IdentifiedObject. More...
 

Static Public Attributes

static const PrimeMeridianNNPtr GREENWICH
 The Greenwich PrimeMeridian.
 
static const PrimeMeridianNNPtr PARIS
 The Paris PrimeMeridian.
 
- Static Public Attributes inherited from osgeo::proj::common::IdentifiedObject
static const std::string NAME_KEY
 Key to set the name of a common::IdentifiedObject. More...
 
static const std::string IDENTIFIERS_KEY
 Key to set the identifier(s) of a common::IdentifiedObject. More...
 
static const std::string ALIAS_KEY
 Key to set the alias(es) of a common::IdentifiedObject. More...
 
static const std::string REMARKS_KEY
 Key to set the remarks of a common::IdentifiedObject. More...
 
static const std::string DEPRECATED_KEY
 Key to set the deprecation flag of a common::IdentifiedObject. More...
 

Additional Inherited Members

- Public Types inherited from osgeo::proj::util::IComparable
enum  Criterion { Criterion::STRICT, Criterion::EQUIVALENT }
 Comparison criterion. More...
 

Detailed Description

The origin meridian from which longitude values are determined.

Note
The default value for prime meridian name is "Greenwich". When the default applies, the value for the longitude shall be 0 (degrees).
Remarks
Implements PrimeMeridian from ISO 19111:2018

Member Function Documentation

PrimeMeridianNNPtr osgeo::proj::datum::PrimeMeridian::create ( const util::PropertyMap properties,
const common::Angle longitudeIn 
)
static

Instanciate a PrimeMeridian.

Parameters
propertiesSee General properties. At minimum the name should be defined.
longitudeInthe longitude of the prime meridian.
Returns
new PrimeMeridian.
bool osgeo::proj::datum::PrimeMeridian::isEquivalentTo ( const util::IComparable other,
util::IComparable::Criterion  criterion = util::IComparable::Criterion::STRICT 
) const
overridevirtual

Returns whether an object is equivalent to another one.

Parameters
otherother object to compare to
criterioncomparaison criterion.
Returns
true if objects are equivalent.

Implements osgeo::proj::util::IComparable.

const common::Angle & osgeo::proj::datum::PrimeMeridian::longitude ( )

Return the longitude of the prime meridian.

It is measured from the internationally-recognised reference meridian ('Greenwich meridian'), positive eastward. The default value is 0 degrees.

Returns
the longitude of the prime meridian.

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