[Gdal-dev] GDAL+MrSID on Apache+MapServer in Chameleon application
Peter Kingsbury
peter.kingsbury at gmail.com
Wed Aug 24 13:16:25 EDT 2005
Hello all,
I am attempting to enable MrSID functionality in Chameleon, and have
come to a roadblock. I am trying to compare performance between SID and
TIF files, to see if it is a viable format for my application.
The host is Windows XP SP2, GDAL 1.3.0 + MrSID on Apache 4 + MapServer
(MS4W), using the Chameleon application.
I've been ekeing my way through compiling the GDAL library, learning how
to integrate the DLL into Apache, and expose the SID
decompression/display in Chameleon. So far I've been compiling the DSDK
from Lizardtech alright, and I've (to my knowledge) pointed the
apache.conf GDAL plugin variable to the correct directory (have tried
relative and absolute).
I've also modified nmake.opt as follows, and compiled GDAL afterward.
The resulting gdal13.dll is larger than without the below options, so I
am assuming it worked properly.
#########################################################
# Uncomment the following for MrSID support.
# You will likely require /MD and /EHsc in OPTFLAGS.
MRSID_DIR = C:\Development\SDK\Geo_DSDK-5.0.6.955
MRSID_INCLUDE = -I$(MRSID_DIR)\include\base -I$(MRSID_DIR)\include\support \
-I$(MRSID_DIR)\include\metadata \
-I$(MRSID_DIR)\include\mrsid_readers \
-I$(MRSID_DIR)\include\j2k_readers
MRSID_LIB = $(MRSID_DIR)\lib\Release_md\lti_dsdk_dll.lib advapi32.lib
user32.lib
# Enable these, if you have the MrSID Encoding SDK and want
# to create MrSID files
#MRSID_FLAGS = -DMRSID_ESDK_VERSION_40 $(MRSID_FLAGS)
#MRSID_INCLUDE = -I$(MRSID_DIR)\include\mrsid_writers \
# -I$(MRSID_DIR)\include\j2k_writers $(MRSID_INCLUDE)
#MRSID_LIB = $(MRSID_DIR)\lib\Release_md\lti_esdk_dll.lib $(MRSID_LIB)-
# Enable the following if you prefer to build MrSID support as a plugin.
#MRSID_PLUGIN = YES
#########################################################
My apache.conf plugin section looks like this. I have also tried the
relative path option, same results.
#########################################################
# set GDAL_DATA environment variable to location of supporting gdal files
SetEnv GDAL_DATA "/ms4w/gdaldata"
# set GDAL_DRIVER_PATH environment variable for gdal plugins
#SetEnv GDAL_DRIVER_PATH "/ms4w/gdalplugins"
SetEnv GDAL_DRIVER_PATH "C:/ms4w/gdalplugins"
#########################################################
However, after restarting Apache, and I pointing my Chameleon MAP file
to the SID files in the data directory (same dir where the working TIF
files exist), a broken map image link results.
I'm not really sure where to go from here, so I thought I would try a
few different avenues of support before I pull my hair out :)
Can anyone point me in the correct direction to reach my goal?
Best regards,
- Peter
More information about the Gdal-dev
mailing list