20 #ifndef otbSpatialReference_h
21 #define otbSpatialReference_h
23 #include "OTBGdalAdaptersExport.h"
29 #pragma warning(disable : 4251)
38 #include "ogr_spatialref.h"
40 class OGRSpatialReference;
148 const std::string& SpheroidName,
const double SemiMajor,
149 const double InvFlattening);
176 #if GDAL_VERSION_NUM >= 3000000
181 void SetAxisMappingStrategy(OSRAxisMappingStrategy strategy);
This class is a wrapper around OGRSpatialReference.
OGRSpatialReferencePtr m_SR
SpatialReference(OGRSpatialReferencePtr ref)
SpatialReference(const OGRSpatialReference *ref)
Constructor from wrapped type. ref will be cloned.
static SpatialReference FromGeogCS(const std::string &GeogName, const std::string &DatumName, const std::string &SpheroidName, const double SemiMajor, const double InvFlattening)
Build a SpatialReference from the datum, ellipsoid, prime meridian and angular units.
static void UTMFromGeoPoint(double lon, double lat, unsigned int &zone, hemisphere &hem)
static SpatialReference FromWGS84()
SpatialReference & operator=(const SpatialReference &other) noexcept
Assignment operator.
OTBGdalAdapters_EXPORT friend bool operator!=(const SpatialReference &sr1, const SpatialReference &sr2) noexcept
Different operator (based on OGRSpatialReference::IsSame())
std::string ToWkt() const
static SpatialReference FromUTM(unsigned int zone, hemisphere hem)
SpatialReference(const SpatialReference &other) noexcept
Copy constructor.
static SpatialReference FromEPSG(unsigned int epsg)
static SpatialReference FromDescription(const std::string &sr_description)
OTBGdalAdapters_EXPORT friend bool operator==(const SpatialReference &sr1, const SpatialReference &sr2) noexcept
Equal operator (based on OGRSpatialReference::IsSame())
std::unique_ptr< OGRSpatialReference, internal::OGRSpatialReferenceDeleter > OGRSpatialReferencePtr
unsigned int ToEPSG() const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
OTBCommon_EXPORT std::ostream & operator<<(std::ostream &os, const otb::StringToHTML &str)
constexpr bool operator==(extents< StaticExtentsL... > const &lhs, extents< StaticExtentsR... > const &rhs)
constexpr bool operator!=(extents< StaticExtentsL... > const &lhs, extents< StaticExtentsR... > const &rhs)
void operator()(OGRSpatialReference *del) const