Ben Discoe ben at v...
Fri Feb 15 20:22:44 EST 2002

Either i am quite confused, or there is a rather prominent bug in
OGRSpatialReference::IsSame() The following test:

if( EQUAL(GetRoot()->GetValue(),poOtherSRS->GetRoot()->GetValue()) )
return FALSE;

... returns FALSE if the two root node values *are* the same, rather than if
they *aren't*. So there is a false negative result for identical
SpatialReferences. I think the test should say "if( !EQUAL(" ...


More information about the Gdal-dev mailing list