small problem in OGRSpatialReference::IsSame?

Ben Discoe ben at v...
Mon Aug 13 03:00:37 EDT 2001


I found that OGRSpatialReference::IsSame seems to fail in the following
case:

OGRSpatialReference one; // "geographical"
OGRSpatialReference two; // "projected", e.g. UTM
int same = one.IsSame(&two);

This returns True when it should return False.

I suspect this could be caught with a check like

if( IsProjected() != poOtherSRS->IsProjected() )
return FALSE;

One other little nit: 'equivalent' is spelled 'equivelent' 20-or-so times in
the gdal source tree.

Thanks,
Ben





More information about the Gdal-dev mailing list