Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#6173 closed defect (fixed)

gdalmove.py unpack error

Reported by: dustymugs Owned by: hobu
Priority: normal Milestone: 2.0.2
Component: PythonBindings Version: 2.0.0
Severity: normal Keywords:
Cc:

Description

Seeing the following with 2.0.1

Traceback (most recent call last):
  File "/usr/local/bin/gdalmove.py", line 266, in <module>
    move( filename, t_srs, s_srs, pixel_threshold )
  File "/usr/local/bin/gdalmove.py", line 118, in move
    (x,inv_new_gt) = gdal.InvGeoTransform( new_gt )
ValueError: too many values to unpack

Fix is to change the value of line 118 to

    inv_new_gt = gdal.InvGeoTransform( new_gt )

Change History (3)

comment:1 by Even Rouault, 9 years ago

Resolution: fixed
Status: newclosed
Version: 2.0.12.0.0

Thanks

trunk r31140, branches/2.0 r31142 "gdalmove.py: fix to run with GDAL 2.0 gdal.InvGeoTransform() signature (fix by dustymugs)"

trunk r31141 "Add gdalmove.py testing (#6173)"

comment:2 by Even Rouault, 9 years ago

trunk r31143, branches/2.0 r31144 "gdalmove.py: fix pyflakes issue (#6173)"

comment:3 by Even Rouault, 9 years ago

trunk r31145 "Avoid being dependant on proj.4 config (#6173)"

Note: See TracTickets for help on using tickets.