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

Time period covered by the content of the dataset. More...

#include <metadata.hpp>

Inheritance diagram for osgeo::proj::metadata::TemporalExtent:
Inheritance graph
[legend]
Collaboration diagram for osgeo::proj::metadata::TemporalExtent:
Collaboration graph
[legend]

Public Member Functions

const std::string & start () PROJ_CONST_DECL
 Returns the start of the temporal extent.
 
const std::string & stop () PROJ_CONST_DECL
 Returns the end of the temporal extent.
 
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...
 
bool contains (const TemporalExtentNNPtr &other) const
 Returns whether this extent contains the other one.
 
bool intersects (const TemporalExtentNNPtr &other) const
 Returns whether this extent intersects the other one.
 

Static Public Member Functions

static TemporalExtentNNPtr create (const std::string &start, const std::string &stop)
 Instanciate a TemporalExtent. More...
 

Additional Inherited Members

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

Detailed Description

Time period covered by the content of the dataset.

Remarks
Simplified version of TemporalExtent from GeoAPI

Member Function Documentation

TemporalExtentNNPtr osgeo::proj::metadata::TemporalExtent::create ( const std::string &  start,
const std::string &  stop 
)
static

Instanciate a TemporalExtent.

Parameters
startstart.
stopstop.
Returns
a new TemporalExtent.
bool osgeo::proj::metadata::TemporalExtent::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.


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