PROJ C++ API
Public Member Functions | Static Public Member Functions | List of all members
osgeo::proj::common::ObjectDomain Class Reference

The scope and validity of a CRS-related object. More...

#include <common.hpp>

Inheritance diagram for osgeo::proj::common::ObjectDomain:
Inheritance graph
[legend]
Collaboration diagram for osgeo::proj::common::ObjectDomain:
Collaboration graph
[legend]

Public Member Functions

const util::optional< std::string > & scope () PROJ_CONST_DECL
 Return the scope. More...
 
const metadata::ExtentPtrdomainOfValidity () PROJ_CONST_DECL
 Return the domain of validity. 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...
 

Static Public Member Functions

static ObjectDomainNNPtr create (const util::optional< std::string > &scopeIn, const metadata::ExtentPtr &extent)
 Instanciate a ObjectDomain.
 

Additional Inherited Members

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

Detailed Description

The scope and validity of a CRS-related object.

Remarks
Implements ObjectDomain from ISO 19111:2018

Member Function Documentation

const ExtentPtr & osgeo::proj::common::ObjectDomain::domainOfValidity ( )

Return the domain of validity.

Returns
the domain of validity, or nullptr.
bool osgeo::proj::common::ObjectDomain::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 optional< std::string > & osgeo::proj::common::ObjectDomain::scope ( )

Return the scope.

Returns
the scope, or empty.

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