|
PROJ C++ API
|
Information about spatial, vertical, and temporal extent. More...
#include <metadata.hpp>


Public Member Functions | |
| const util::optional< std::string > & | description () PROJ_CONST_DECL |
| const std::vector< GeographicExtentNNPtr > & | geographicElements () PROJ_CONST_DECL |
| const std::vector< TemporalExtentNNPtr > & | temporalElements () PROJ_CONST_DECL |
| const std::vector< VerticalExtentNNPtr > & | verticalElements () PROJ_CONST_DECL |
| 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 ExtentNNPtr &other) const |
| Returns whether this extent contains the other one. More... | |
| bool | intersects (const ExtentNNPtr &other) const |
| Returns whether this extent intersects the other one. More... | |
| ExtentPtr | intersection (const ExtentNNPtr &other) const |
| Returns the intersection of this extent with another one. More... | |
Static Public Member Functions | |
| static ExtentNNPtr | create (const util::optional< std::string > &descriptionIn, const std::vector< GeographicExtentNNPtr > &geographicElementsIn, const std::vector< VerticalExtentNNPtr > &verticalElementsIn, const std::vector< TemporalExtentNNPtr > &temporalElementsIn) |
| Instanciate a Extent. More... | |
| static ExtentNNPtr | createFromBBOX (double west, double south, double east, double north, const util::optional< std::string > &descriptionIn=util::optional< std::string >()) |
| Instanciate a Extent from a bounding box. More... | |
Static Public Attributes | |
| static const ExtentNNPtr | WORLD |
| World extent. | |
Additional Inherited Members | |
Public Types inherited from osgeo::proj::util::IComparable | |
| enum | Criterion { Criterion::STRICT, Criterion::EQUIVALENT } |
| Comparison criterion. More... | |
Information about spatial, vertical, and temporal extent.
| bool osgeo::proj::metadata::Extent::contains | ( | const ExtentNNPtr & | other | ) | const |
Returns whether this extent contains the other one.
Behaviour only well specified if each sub-extent category as at most one element.
|
static |
|
static |
Instanciate a Extent from a bounding box.
| west | Western-most coordinate of the limit of the dataset extent (in degrees). |
| south | Southern-most coordinate of the limit of the dataset extent (in degrees). |
| east | Eastern-most coordinate of the limit of the dataset extent (in degrees). |
| north | Northern-most coordinate of the limit of the dataset extent (in degrees). |
| descriptionIn | Textual description, or empty. |
| const optional< std::string > & osgeo::proj::metadata::Extent::description | ( | ) |
Return a textual description of the extent.
| const std::vector< GeographicExtentNNPtr > & osgeo::proj::metadata::Extent::geographicElements | ( | ) |
Return the geographic element(s) of the extent
| ExtentPtr osgeo::proj::metadata::Extent::intersection | ( | const ExtentNNPtr & | other | ) | const |
Returns the intersection of this extent with another one.
Behaviour only well specified if there is one single GeographicExtent in each object. Returns nullptr otherwise.
| bool osgeo::proj::metadata::Extent::intersects | ( | const ExtentNNPtr & | other | ) | const |
Returns whether this extent intersects the other one.
Behaviour only well specified if each sub-extent category as at most one element.
|
overridevirtual |
Returns whether an object is equivalent to another one.
| other | other object to compare to |
| criterion | comparaison criterion. |
Implements osgeo::proj::util::IComparable.
| const std::vector< TemporalExtentNNPtr > & osgeo::proj::metadata::Extent::temporalElements | ( | ) |
Return the temporal element(s) of the extent
| const std::vector< VerticalExtentNNPtr > & osgeo::proj::metadata::Extent::verticalElements | ( | ) |
Return the vertical element(s) of the extent
1.8.11