[gdal-dev] _osr TransformPoint error
Gong, Shawn (Contractor)
Shawn.Gong at drdc-rddc.gc.ca
Wed Jun 10 17:19:12 EDT 2009
hi list,
I've been getting the following error from osr.py:
File "C:\iapro\OpenEV\python\lib\site-packages\osgeo\osr.py", line 618, in TransformPoint
return _osr.CoordinateTransformation_TransformPoint(*args)
NotImplementedError: Wrong number of arguments for overloaded function 'CoordinateTransformation_TransformPoint'.
Possible C/C++ prototypes are:
TransformPoint(double [3])
TransformPoint(double [3], double, double, double)
The function I'm calling is below. I've tried it with different input combinations, but I always get the same result.
tr = osr.CoordinateTransformation(ref, proj)
tr_pts = []
for pt in geo_nodes:
tr_pts.append(tr.TransformPoint(pt[0], pt[1]))
Has anyone seen the error, does it has something to do with Swig?
thanks,
Shawn
More information about the gdal-dev
mailing list