Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#6169 closed defect (fixed)

GetFileList() no longer report world files

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone: 2.2.0
Component: default Version: unspecified
Severity: normal Keywords:


Since r28907, world files are no longer listed by the generic GetFileList() implementation due to an inverted logic test... (the original intent was avoid stat'ing those sidecar files in /vsicurl/foo?bar case)

Not sure if it is a bad thing as previously world files were sometimes listed even when they are not used. For example an ECW file that has internal georeferencing will ignore its world file.

Change History (2)

comment:1 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

In 34438:

GDALDataset::GetFileList(): remove dead code.

Up to r28907, this function used to report side car world files. But r28907 broke
this behaviour due to a logic error (it should have tested
GDALCanFileAcceptSidecarFile(), and not its reverse). But fundamentally, the
'broken' behaviour is not bad, since there's no guarantee that a .wld will be
used. It should be the responsibility of the driver to report it if it uses it,
which popular drivers already do.

Fixes #6169

comment:2 by Even Rouault, 8 years ago

Milestone: 2.2.0
Note: See TracTickets for help on using tickets.