Opened 15 years ago
Closed 15 years ago
#2764 closed defect (fixed)
Broken python bindings for TransformCoordinates method of osr.CoordinateTransformation
Reported by: | kreymborg | Owned by: | Even Rouault |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.1 |
Component: | PythonBindings | Version: | 1.6.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
In the new Python bindings, available at
http://pypi.python.org/pypi/GDAL/
In osr.py, the method TransformCoordinates of the class CoordinateTransformation is broken. TransformCoordinates method requires 4 parameters, and the method fails no matter what is passed to it.
FYI, in the old python bindings (in the /pymod folder of the GDAL source distribution), the TransformCoordinates method only took one parameter, a list of xyz triplets, and it worked OK.
Per Howard Butler, via email correspondence, a typemap is needed to fix this.
Change History (2)
comment:1 by , 15 years ago
Owner: | changed from | to
---|
comment:2 by , 15 years ago
Milestone: | → 1.6.1 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The above bug description has a typo : it was CoordinateTransformation.TransformPoints() which was broken. And Transform.TransformPoints() was also missing a similar typemap.
Fixed in trunk (r16628) and branches/1.6 (r16630). Tests added in r16631