<DIV>
<DIV>
<DIV>
<DIV>Hi everyone.</DIV>
<DIV>Lets see if someone can tell me what could be wrong.</DIV>
<DIV> </DIV>
<DIV>I am working with:</DIV>
<DIV>MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE<BR></DIV>
<DIV>I am using java servlets.</DIV>
<DIV> </DIV>
<DIV>when I use shapefiles :usa1.map it works but when I want to include a tif file it doesn't work: usa3.map, nitelti020l.tif</DIV>
<DIV> </DIV>
<DIV>The instructions I use are:</DIV>
<DIV> </DIV>
<DIV>for the first case that works:</DIV>
<DIV> </DIV>
<DIV>
<DIV>...</DIV>
<DIV>mapObj map = new mapObj("/mypath/usa1.map");</DIV>
<DIV>imageObj img = map.draw();</DIV>
<DIV>img.save("/mypath/usa1.png", map);</DIV>
<DIV>...</DIV>
<DIV>out.println("<BR><IMG SRC=http://webbrowserpath/usa1.png>");</DIV>
<DIV> </DIV>
<DIV>For the second case with raster that doesn't work:</DIV></DIV>
<DIV> </DIV>
<DIV>...</DIV>
<DIV>mapObj map = new mapObj("/mypath/usa3.map");</DIV>
<DIV>imageObj img = map.draw();</DIV>
<DIV>img.save("/mypath/usa3.png", map);</DIV>
<DIV>...</DIV>
<DIV>out.println("<BR><IMG SRC=http://webbrowserpath/usa3.png>");</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>And here are the mapfiles:</DIV>
<DIV> </DIV>
<DIV>usa1.map</DIV>
<DIV> </DIV>
<DIV>MAP<BR> NAME USA1<BR> STATUS ON<BR> SIZE 800 500<BR> IMAGETYPE PNG<BR> IMAGECOLOR 240 240 240<BR> SHAPEPATH "/mypath"<BR> EXTENT -8000000 300000 5000000 1500000<BR> UNITS METERS<BR> PROJECTION<BR> "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83"<BR> END<BR> WEB<BR> IMAGEPATH "/mypath/"<BR> IMAGEURL "/mypath/"<BR> END<BR> <BR> LAYER<BR> NAME "US state boundaries"<BR> TYPE POLYGON<BR> STATUS ON<BR> DATA
"statesp020"<BR> PROJECTION<BR> "proj=latlong"<BR> "ellps=GRS80"<BR> "datum=NAD83"<BR> END<BR> CLASS<BR> NAME "US states"<BR> OUTLINECOLOR 60 60 60<BR> COLOR 255 255 0<BR> SYMBOL 0<BR> END<BR> END<BR> <BR> LAYER<BR> NAME "credits"<BR> STATUS DEFAULT<BR> TRANSFORM FALSE<BR> TYPE ANNOTATION<BR> FEATURE<BR> POINTS<BR> 10 480<BR> END<BR> TEXT 'Made with Mapserver.'<BR> END<BR> CLASS<BR> LABEL<BR> TYPE BITMAP<BR> POSITION CR<BR> COLOR 0 0 0<BR> END<BR> END<BR> END<BR>END<BR></DIV>
<DIV> </DIV>
<DIV>usa3.map</DIV>
<DIV> </DIV>
<DIV>MAP<BR> NAME USA3<BR> STATUS ON<BR> IMAGETYPE PNG<BR> SIZE 800 500<BR> SHAPEPATH "/mypath"<BR> EXTENT -6086744.000 -2784127 4278894 4485901<BR> UNITS METERS<BR> PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" "datum=NAD83" END<BR> WEB<BR> IMAGEPATH "/mypath/"<BR> IMAGEURL "/mypath/"<BR> END</DIV>
<DIV> LAYER<BR> NAME "Nighttime lights"<BR> TYPE RASTER<BR> STATUS ON<BR> DATA "/mypath/nitelti020l.tif"<BR> END</DIV>
<DIV> LAYER<BR> NAME "US state boundaries"<BR> TYPE POLYGON<BR> STATUS ON<BR> DATA "statesp020"<BR> PROJECTION<BR> "proj=latlong"<BR> "ellps=GRS80"<BR> "datum=NAD83"<BR> END<BR> CLASS<BR> NAME "US states"<BR> OUTLINECOLOR 50 50 50<BR> SYMBOL 0<BR> END<BR> END</DIV>
<DIV>END</DIV></DIV></DIV></DIV><p>
<hr size=1><br><table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail/image/*http://es.mail.yahoo.com"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/emb25.gif" height=80 width=230 alt="Nuevo Correo Yahoo!" border=0 align="left"></a></td></tr></table>