[Gdal-dev] OGRSpatialReference::GetTOWGS84()

Ian Britten britten at caris.com
Fri Jan 13 10:32:48 EST 2006


Hi all,
I'm new to using OGR, and I'm trying to work out if I've encountered a
bug, or whether I'm doing something wrong...

[ FWIW, I'm using the gdal-1.2.5-2mdk RPM on a Mandriva Linux system. ]

I'm:
     1) Creating a OGRSpatialReference, using the default constructor
     2) Setting it to be an EPSG system, using the importFromEPSG()
        method.
     3) Trying to get the WGS84 conversion parameters, using the
        GetTOWGS84() method.

All the steps succeed with no errors, except for the call to
GetTOWGS84(), which fails with an OGRERR_FAILURE error.

I've tried several different EPSG numbers, and they all seem to exhibit
the same behaviour.  Note that the OSR built successfully, and other
methods seem to be returning correct values (ie GetSemiMajor(),
GetSemiMinor(), etc).

After doing some further digging, I wondered if my problem may be
similar to bug #784
(http://bugzilla.remotesensing.org/show_bug.cgi?id=784)

OTOH, maybe there's step that I've missed...
Any help would be appreciated!
Ian
--

PS - The mailing list archive link on the GDAL home page
(http://www.remotesensing.org/gdal/ogr/) isn't correct.



More information about the Gdal-dev mailing list