PROJ C++ API
|
Geographic position of the dataset. More...
#include <metadata.hpp>
Public Member Functions | |
double | westBoundLongitude () PROJ_CONST_DECL |
Returns the western-most coordinate of the limit of the dataset extent. More... | |
double | southBoundLatitude () PROJ_CONST_DECL |
Returns the southern-most coordinate of the limit of the dataset extent. More... | |
double | eastBoundLongitude () PROJ_CONST_DECL |
Returns the eastern-most coordinate of the limit of the dataset extent. More... | |
double | northBoundLatitude () PROJ_CONST_DECL |
Returns the northern-most coordinate of the limit of the dataset extent. 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... | |
bool | contains (const GeographicExtentNNPtr &other) const override |
Returns whether this extent contains the other one. | |
bool | intersects (const GeographicExtentNNPtr &other) const override |
Returns whether this extent intersects the other one. | |
GeographicExtentPtr | intersection (const GeographicExtentNNPtr &other) const override |
Returns the intersection of this extent with another one. | |
Static Public Member Functions | |
static GeographicBoundingBoxNNPtr | create (double west, double south, double east, double north) |
Instanciate a GeographicBoundingBox. More... | |
Additional Inherited Members | |
Public Types inherited from osgeo::proj::util::IComparable | |
enum | Criterion { Criterion::STRICT, Criterion::EQUIVALENT } |
Comparison criterion. More... | |
Geographic position of the dataset.
This is only an approximate so specifying the co-ordinate reference system is unnecessary.
|
static |
Instanciate a GeographicBoundingBox.
If east < west, then the bounding box crosses the anti-meridian.
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). |
double osgeo::proj::metadata::GeographicBoundingBox::eastBoundLongitude | ( | ) |
Returns the eastern-most coordinate of the limit of the dataset extent.
The unit is degrees.
If eastBoundLongitude < westBoundLongitude(), then the bounding box crosses the anti-meridian.
|
overridevirtual |
Returns whether an object is equivalent to another one.
other | other object to compare to |
criterion | comparaison criterion. |
Implements osgeo::proj::metadata::GeographicExtent.
double osgeo::proj::metadata::GeographicBoundingBox::northBoundLatitude | ( | ) |
Returns the northern-most coordinate of the limit of the dataset extent.
The unit is degrees.
double osgeo::proj::metadata::GeographicBoundingBox::southBoundLatitude | ( | ) |
Returns the southern-most coordinate of the limit of the dataset extent.
The unit is degrees.
double osgeo::proj::metadata::GeographicBoundingBox::westBoundLongitude | ( | ) |
Returns the western-most coordinate of the limit of the dataset extent.
The unit is degrees.
If eastBoundLongitude < westBoundLongitude(), then the bounding box crosses the anti-meridian.