Commit c035b340 authored by Julien Osman's avatar Julien Osman

ENH: Add possibility to access the OGRSpatialReference from the otbSpatialReference

parent 4432f301
......@@ -176,6 +176,11 @@ public:
*/
static void UTMFromGeoPoint(double lon, double lat, unsigned int& zone, hemisphere& hem);
/**
* Returns the internal OGRSpatialReference
*/
OGRSpatialReference* getOGRSpatialReference();
private:
/// Constructor from wrapped type. ref will be cloned.
SpatialReference(const OGRSpatialReference* ref);
......
......@@ -294,6 +294,11 @@ void SpatialReference::UTMFromGeoPoint(double lon, double lat, unsigned int& zon
assert(zone <= 60);
}
OGRSpatialReference* SpatialReference::getOGRSpatialReference()
{
return m_SR.get();
}
#if GDAL_VERSION_NUM >= 3000000
void SpatialReference::SetAxisMappingStrategy(OSRAxisMappingStrategy strategy)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment