[Gdal-dev] OGRCreateCoordinateTransformation
Cho Hyun-Kee
hkcho79 at hotmail.com
Mon May 8 11:28:57 EDT 2006
Hello!
I use GDAL Library for coordinate transformation.
But whenever I use OGRCreateCoordinateTransformation function, it returns
NULL value.
The code is like tihs.
OGRSpatialReference OSRInputCoordinateInform;
OGRSpatialReference OSROutputCoordinateInform;
OSRInputCoordinateInform.SetTM(38, 127, 0.9996, 100000, 200000);
OSRInputCoordinateInform.importFromEPSG(4162);
OSROutputCoordinateInform.SetUTM(52, TRUE);
OSROutputCoordinateInform.importFromEPSG(4166);
OGRCoordinateTransformation *poCoordinateTransform;
poCoordinateTransform =
OGRCreateCoordinateTransformation(&OSRInputCoordinateInform,
&OSROutputCoordinateInform); // return NULL
How can I use it??
More information about the Gdal-dev
mailing list