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;
50 void operator()(OGRSpatialReference* del)
const;
147 static SpatialReference FromGeogCS(
const std::string& GeogName,
const std::string& DatumName,
148 const std::string& SpheroidName,
const double SemiMajor,
149 const double InvFlattening);
161 std::string ToWkt()
const;
168 bool NormalizeESRI();
174 unsigned int ToEPSG()
const;
176 #if GDAL_VERSION_NUM >= 3000000
181 void SetAxisMappingStrategy(OSRAxisMappingStrategy strategy);
193 static void UTMFromGeoPoint(
double lon,
double lat,
unsigned int& zone, hemisphere& hem);