Skip to content
Snippets Groups Projects
Commit 6abca16c authored by Luc Hermitte's avatar Luc Hermitte
Browse files

COM: OTB-134/OGR -> missing include for old versions of OGR

parent 50c15537
Branches
Tags
No related merge requests found
......@@ -22,7 +22,7 @@
#include "otbOGRGeometryWrapper.h"
#include "ogr_geometry.h"
#if GDAL_VERSION_NUM < 1800
#if GDAL_VERSION_NUM < 1900
# include "itkMacro.h"
#endif
......@@ -140,7 +140,7 @@ otb::ogr::UniqueGeometryPtr otb::ogr::SimplifyPreserveTopology(OGRGeometry const
return UniqueGeometryPtr(g.SimplifyPreserveTopology(tolerance));
#else
itkGenericExceptionMacro("OGRGeometry::Simplify is not supported by OGR v"
<< GDAL_VERSION_NUM << ". Upgrade to a version >= 1.8.0, and recompile OTB.");
<< GDAL_VERSION_NUM << ". Upgrade to a version >= 1.9.0, and recompile OTB.");
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment