Opened 16 years ago

Closed 16 years ago

#2524 closed defect (fixed)

Updating overviews in existing .rrd file fails due to permissions

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone: 1.5.3
Component: GDAL_Raster Version: 1.5.0
Severity: normal Keywords: HFA
Cc:

Description

Attempting to run:

gdaladdo small.img 2

On the attached file fails. This appears to be because the .rrd file is opened in read-only mode even when gdaladdo opens the .img file in update mode.

Attachments (1)

ov_small.zip (11.4 KB ) - added by warmerdam 16 years ago.
Sample dataset with existing overview demonstrating problem

Download all attachments as: .zip

Change History (3)

by warmerdam, 16 years ago

Attachment: ov_small.zip added

Sample dataset with existing overview demonstrating problem

comment:1 by warmerdam, 16 years ago

Owner: changed from gaopeng to warmerdam
Status: newassigned

In reviewing this situation I found that errors were not being propagated properly, nor reported nicely for this situation. I have applied r15114, r15113 and r15112 in trunk to improve the situation. None of these changes are critical though and I don't plan to take them into 1.5 branch. They also don't fix the core problem.

comment:2 by warmerdam, 16 years ago

Resolution: fixed
Status: assignedclosed

One more error propagation fix in r15115.

The actual fix - which opens the .rrd file with the same permissions as the master, is in trunk (r15117) and 1.5 branch (r15118).

A test has been added for this in the test suite (r15116).

Closing...

Note: See TracTickets for help on using tickets.