<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>How to Use MR.SID raster files in mapserver 4.4.2 ?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Robert,</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; It is possible to use MrSID files as a data source for 
MapServer.&nbsp; Personally, I don't recommend it due to the poor decompression 
performance of MrSID.&nbsp; If you have the disk space convert the MrSID files 
to uncompressed TIF instead (you can use GDAL's gdal_translate utility).&nbsp; 
If disk space is not available use ECW (although I'm not sure of the compilation 
status on unix).</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; What do you get when you run GDAL's gdalinfo utility on 
the MrSID file?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Brent Fraser</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=OudelohuisR@VERTIS.NL href="mailto:OudelohuisR@VERTIS.NL">Robert oude 
  Lohuis</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=MAPSERVER-USERS@LISTS.UMN.EDU 
  href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 02, 2005 6:32 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [UMN_MAPSERVER-USERS] How to Use 
  MR.SID raster files in mapserver 4.4.2 ?</DIV>
  <DIV><BR></DIV><BR>
  <P><FONT face=Arial size=2>Hello,</FONT> </P>
  <P><FONT face=Arial size=2>We have compiled version 4.4.2 of mapserver (and 
  the necessary libraries) from the sources on a unix box.</FONT> <BR><FONT 
  face=Arial size=2>It is now configured and working. There is however one 
  problem. </FONT><BR><FONT face=Arial size=2>We have a couple of Mr. SID files 
  and want to use these as a layer.</FONT> <BR><FONT face=Arial size=2>We 
  downloaded the libraries from lizardtech and recompiled GDAL with support for 
  Mr.SID</FONT> </P>
  <P><FONT face=Arial size=2>We did tiled the Mr. SID files and configured a 
  layer. There are no error messages, but I see no data in the map.</FONT> 
  <BR><FONT face=Arial size=2>We tried to look at an individual Mr. SID file, 
  but then we got the following error :</FONT> </P>
  <P><FONT face=Arial>MrSIDRasterBand::IRasterIO(): Failed to load image. scene 
  magnifGDALRasterIO() failed: drawGDAL(): Unable to access file. GDALRasterIO() 
  failed: drawGDAL() </FONT></P>
  <P><FONT face=Arial size=2>A recompile of mapserver had no effect.</FONT> </P>
  <P><FONT face=Arial size=2>The first question is: Is it possible to look at 
  Mr.SID rasters through mapserver ?</FONT> <BR><FONT face=Arial size=2>And the 
  second question is, if so,&nbsp; what's the trick ?</FONT> </P>
  <P><FONT face=Arial size=2>Does anyone have knowledge on this subject and 
  willing to share his/her information ?</FONT> </P>
  <P><FONT face=Arial size=2>Thanks in advance,</FONT> </P>
  <P><FONT face=Arial size=2>Robert oude Lohuis</FONT> 
</P></BLOCKQUOTE></BODY></HTML>