ECW driver tries to open JP2 box even for JPEG2000 files
|Reported by:||rouault||Owned by:||rouault|
The consequence is that, as the GDALJP2Metadata::ReadAndParse?() returns TRUE if a worlfile is detected, the ECW projection info isn't read first if there's a worldfile near the ECW file. This is the case with the samples ECW files provided by OSMastermap at http://www.ordnancesurvey.co.uk/docs/sample-data/os-mastermap-imagery-layer-ecw-sample-data.zip.