Skip to content
Snippets Groups Projects
Commit 2c82adab authored by Jonathan Guinet's avatar Jonathan Guinet
Browse files

BUG: ESRI validation must be equal to OBRERR_NONE in IsESRIValidWKT

parent 23c9a4c3
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ bool GeoInformationConversion::IsESRIValidWKT(const std::string &wkt)
{
OGRSpatialReference SRS(wkt.c_str());
SRS.morphToESRI();
return SRS.Validate()!=OGRERR_NONE;
return SRS.Validate()==OGRERR_NONE;
}
} // End namespace otb
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment