Ticket #1542 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

NG gdalnumeric - wrong array order

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.4.1
Component: PythonBindings Version: 1.4.0
Severity: normal Keywords:
Cc: hobu

Description

In the old generation bindings ReadBandAsArray?() returned a 2d array, and ReadDatasetAsArray?() returned a 2d array for 1 band files, and 3d for multi band files.

The NG bindings return 3d arrays from both in all circumstances.

I would like to correct the NG bindings to do the same thing as the old gen bindings.

The is an effort to maintain compatibility (as well as to provide the behavior I think is natural). But it will mean that folks who have written scripts to the NG bindings for 1.4.0 may find them breaking.

Change History

Changed 6 years ago by warmerdam

  • status changed from new to assigned

Changed 6 years ago by warmerdam

This has been fixed in trunk (r11113).

This is also now tested for in gcore/numpy_rw.py

Still need to backport into 1.4 branch.

Changed 6 years ago by warmerdam

  • status changed from assigned to closed
  • resolution set to fixed

Merged fix into 1.4 branch (r11118).

Note: See TracTickets for help on using tickets.