[Gdal-dev] MrSID
Martin Daly
Martin.Daly at cadcorp.com
Wed Nov 3 09:17:39 EST 2004
Frank, Andrey,
The MrSID driver opens MrSID images like this:
poDS->poImageReader = new MrSIDImageReader( oFileSpec );
But there is a useful second parameter to the constructor, useWorldFile,
which defaults to false:
MrSIDImageReader(const LTFileSpec& fileSpec,
bool useWorldFile = false,
MrSIDMemoryUsage
memoryUsage=MRSID_MEMORY_USAGE_DEFAULT,
MrSIDStreamUsage
streamUsage=MRSID_STREAM_USAGE_DEFAULT);
What do you think about changing the line to be:
poDS->poImageReader = new MrSIDImageReader( oFileSpec, true );
That way, opening a (typically old) MrSID file that has an accompanying
.SDW "world" file will read the .SDW geo-referencing. I can provide an
off-list sample if you need one.
Regards,
Martin
More information about the Gdal-dev
mailing list