[Gdal-dev] MrSID ESDK problems
dion at west.nl
dion at west.nl
Tue Jan 10 17:41:10 EST 2006
Hello Frank,
As I'm working with Bart on the same project, let me provide the information
you asked for.
> On 1/10/06, Bart van den Eijnden (OSGIS) <bartvde at xs4all.nl> wrote:
>> Hi list,
>>
>> we are having some problems getting the MrSID ESDK to work with GDAL CVS
>> (04-01-2006). We have bought the ESDK from Lizardtech.
>
> Bart,
>
> What version is the ESDK?
ESDK-5.0.6.955
>> It is listed as output format, but gdal_translate won't write a MrSID
>> file, it reports something like output format not supported.
>
> Does "gdalinfo --format mrsid" have a line reporting
> "Supports: CreateCopy()..."?
Yes. In fact, here's the complete output:
Format Details:
Short Name: MrSID
Long Name: Multi-resolution Seamless Image Database (MrSID)
Extension: sid
Help Topic: frmt_mrsid.html
Supports: CreateCopy() - Create dataset by copying another.
Creation Datatypes: Byte Int16 UInt16 Int32 UInt32 Float32 Float64
<CreationOptionList>
<Option name="COMPRESSION" type="double" description="Set compression
ratio (0.0 default is meant to be less)"/>
<Option name="TWOPASS" type="int" description="Use twopass optimizer
algorithm"/>
<Option name="FILESIZE" type="int" description="Set target file size (0
implies lossless compression)"/
<Option name="WORLDFILE" type="boolean" description="Write out world
file"/>
<Option name="VERSION" type="int" description="Valid versions are 2 and
3, default = 3"/>
</CreationOptionList>
>> Any ideas what this could be? Thanks in advance.
>
> Are you building on windows or linux? Is the -DMRSID_ESDK
> compile option in effect when mrsiddataset.cpp is compiled?
> My guess is some sort of configuration problem is preventing
> from the encoding support getting enabled.
We are building on Linux (Redhat ES 3.0). I think the -DMRSID_ESDK
is used when building. 'config.log' contains the following:
....
configure:25219: checking for lt_base.h in
/opt/Geo_ESDK-5.0.6.955/include/support
configure:25222: result: found MrSID DSDK version 4.x or newer.
configure:25229: checking for MG3ImageWriter.h in
/opt/Geo_ESDK-5.0.6.955/include/mrsid_writers
configure:25232: result: found MrSID ESDK version 4.x or newer.
configure:25239: checking for MrSID JPEG2000 support
configure:25261: result: enabled
....
LIBS='-lclntsh -L/usr/lib -lxerces-c -lpthread
-L/opt/Geo_ESDK-5.0.6.955/lib/Release
-L/opt/Geo_ESDK-5.0.6.955/3rd-party/lib/Release -lltiesdk -lcryptopp
-lxmlparse -lltidsdk -lpthread -lltikdu -L/usr/local/lib -lNCSEcw
-lNCSCnet -lNCSUtil -ljpeg -lpng -lm -lrt -ldl '
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIBZ_SETTING='internal'
LN_S='ln -s'
LTLIBOBJS=''
MRSID_FLAGS='-DMRSID_J2K -DMRSID_ESDK '
MRSID_INCLUDE='-I/opt/Geo_ESDK-5.0.6.955/include/mrsid_writers
-I/opt/Geo_ESDK-5.0.6.955/include/j2k_writers
-I/opt/Geo_ESDK-5.0.6.955/include/base
-I/opt/Geo_ESDK-5.0.6.955/include/metadata
-I/opt/Geo_ESDK-5.0.6.955/include/mrsid_readers
-I/opt/Geo_ESDK-5.0.6.955/include/j2k_readers
-I/opt/Geo_ESDK-5.0.6.955/include/support'
Also, a 'make' in frmts/mrsid shows the following:
/bin/sh ../../libtool --mode=compile g++ -Wall -O2 -march=i386 -mcpu=i686
-I../../port -I../../gcore -I.. /../alg -I../../ogr
-I../../ogr/ogrsf_frmts -DMRSID_J2K -DMRSID_ESDK
-I/opt/Geo_ESDK-5.0.6.955/include/mrsid_writers
-I/opt/Geo_ESDK-5.0.6.955/include/j2k_writers
-I/opt/Geo_ESDK-5.0.6.955/include/base
-I/opt/Geo_ESDK-5.0.6.955/include/metadata
-I/opt/Geo_ESDK-5.0.6.955/include/mrsid_readers
-I/opt/Geo_ESDK-5.0.6.955/include/j2k_readers
-I/opt/Geo_ESDK-5.0.6.955/include/support -I../../frmts/gtiff/libgeotiff
-D_REENTRANT -I../../port -I/us r/local/include -c -o mrsiddataset.o
mrsiddataset.cpp
A problem that is probably related is that mapserver 4.8.0-rc2 also
fails to write MrSID output when doing a WCS GetCoverage request. It
throws an ServiceException:
msSaveImageGDAL(): General error message. Failed to create output MrSID file.
`/data/OGC_UMN_services/tmp/ms_tmp/1136930007234670.sid' not
recognised as a supported file format.
Regards,
Dion
-- Dion Wooning, dion at west.nl, West Consulting B.V., +31 15 219 1600
More information about the Gdal-dev
mailing list