<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV><FONT face=Arial size=2><FONT face=Verdana size=2>Hello all;</FONT></DIV>
<DIV>
<P><FONT face=Verdana size=2></FONT>&nbsp;</P>
<P><FONT face=Verdana size=2>I've got a small PhpMapScript (mapserver4.8.1 php5.1.2) app running on my XP machine with IIS and have run into a few questions regarding Raster support.</FONT></P>
<P><FONT face=Verdana size=2>&nbsp;</P>
<P>Iąve got 300 tiff tiles of my area. I also have a (large!) 818meg MrSid version of the same data.</P>
<P>I have a MAPFILE containting 2 of the 300 tiles and define them as:</P>
<P>&nbsp;</P>
<P>LAYER</P>
<P>&nbsp;&nbsp;&nbsp; STATUS ON</P>
<P>&nbsp;&nbsp;&nbsp; NAME 'MYORTHOtest'</P>
<P>&nbsp;&nbsp;&nbsp; TYPE RASTER</P>
<P>&nbsp;&nbsp;&nbsp; DATA "blahblah\filename.tif"</P>
<P>END</P>
<P>&nbsp;</P>
<P>My OUTPUTFORMAT in the MAPFILE is defined as:</P>
<P>&nbsp;</P>
<P>OUTPUTFORMAT</P>
<P>&nbsp;&nbsp;&nbsp; NAME png</P>
<P>&nbsp;&nbsp;&nbsp; DRIVER "GD/PNG"</P>
<P>&nbsp;&nbsp;&nbsp; MIMETYPE "image/png"</P>
<P>&nbsp;&nbsp;&nbsp; IMAGEMODE PC256</P>
<P>&nbsp;&nbsp;&nbsp; EXTENSION "png"</P>
<P>END</P>
<P>&nbsp;</P>
<P>Now Questions:</P>
<P>1 - Displayed with the above outputformat, the resulting image quality is poor. Iąm not sure what the correct terminology is, but it doesnąt seem like it is using all the colors it should. If I change my Output format to Jpeg, the resulting image appears great...although performance seems affected. All other output formats result in "poor" image quality too. What am I missing?</P>
<P>&nbsp;</P>
<P>2 - While "panning" around my map, if I get to the "edge" of one of the tiles displayed in the map, I get the following PHP error:"Warning: [MapServer Error]: IReadBlock failed at X offset 9, Y offset 39: GDALRasterIO() failed: drawGDAL()"</P>
<P></P>
<P>If Iąm zoomed into the tile enough so that it fills my map, or that the entire tile shows in the map, then I donąt get an error. What is causing this?</P>
<P>&nbsp;</P>
<P>3 - I've searched, but didn't find anything regarding MrSid&nbsp;in PHPMapScript. It's not supported correct?</P>
<P>&nbsp;</P>
<P>Regards,</P>
<P>Denis</P>
<P>&nbsp;</P><B><FONT face=Verdana color=#800000 size=1>
<P>Denis Lalonde</B></FONT><FONT face="Tms Rmn"><FONT size=3> </FONT></FONT><FONT face=Verdana color=#000080 size=1></P>
<P>Engineering, Environmental and Construction Services</P>
<P>City of Cornwall</P>
<P>P.O. BOX 877, 1225 Ontario Street</P>
<P>Cornwall, Ontario K6H 5T9</P>
<P>dlalonde@city.cornwall.on.ca</P></FONT></FONT></FONT><FONT face=Arial size=2>I</FONT></DIV></div><br></body></html>