<DIV>
<DIV>
<DIV>
<DIV>Hi everyone.</DIV>
<DIV>Lets see if someone can tell me what could be wrong.</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>The instructions I use are:</DIV>
<DIV>&nbsp;</DIV>
<DIV>for the first case that works:</DIV>
<DIV>&nbsp;</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("&lt;BR&gt;&lt;IMG SRC=http://webbrowserpath/usa1.png&gt;");</DIV>
<DIV>&nbsp;</DIV>
<DIV>For the second case with raster that doesn't work:</DIV></DIV>
<DIV>&nbsp;</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("&lt;BR&gt;&lt;IMG SRC=http://webbrowserpath/usa3.png&gt;");</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>And here are the mapfiles:</DIV>
<DIV>&nbsp;</DIV>
<DIV>usa1.map</DIV>
<DIV>&nbsp;</DIV>
<DIV>MAP<BR>&nbsp;&nbsp;&nbsp; NAME USA1<BR>&nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; SIZE 800 500<BR>&nbsp;&nbsp;&nbsp; IMAGETYPE PNG<BR>&nbsp;&nbsp;&nbsp; IMAGECOLOR 240 240 240<BR>&nbsp;&nbsp;&nbsp; SHAPEPATH "/mypath"<BR>&nbsp;&nbsp;&nbsp; EXTENT -8000000 300000 5000000 1500000<BR>&nbsp;&nbsp;&nbsp; UNITS METERS<BR>&nbsp;&nbsp;&nbsp; PROJECTION<BR>&nbsp;&nbsp;"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>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; WEB<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH "/mypath/"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL "/mypath/"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;<BR>&nbsp;LAYER<BR>&nbsp;&nbsp;NAME "US state boundaries"<BR>&nbsp;&nbsp;TYPE POLYGON<BR>&nbsp;&nbsp;STATUS ON<BR>&nbsp;&nbsp;DATA
 "statesp020"<BR>&nbsp;&nbsp;PROJECTION<BR>&nbsp;&nbsp;&nbsp;"proj=latlong"<BR>&nbsp;&nbsp;&nbsp;"ellps=GRS80"<BR>&nbsp;&nbsp;&nbsp;"datum=NAD83"<BR>&nbsp;&nbsp;END<BR>&nbsp;&nbsp;CLASS<BR>&nbsp;&nbsp;&nbsp;NAME "US states"<BR>&nbsp;&nbsp;&nbsp;OUTLINECOLOR 60 60 60<BR>&nbsp;&nbsp;&nbsp;COLOR 255 255 0<BR>&nbsp;&nbsp;&nbsp;SYMBOL 0<BR>&nbsp;&nbsp;END<BR>&nbsp;END<BR>&nbsp;<BR>&nbsp;LAYER<BR>&nbsp;&nbsp;NAME "credits"<BR>&nbsp;&nbsp;STATUS DEFAULT<BR>&nbsp;&nbsp;TRANSFORM FALSE<BR>&nbsp;&nbsp;TYPE ANNOTATION<BR>&nbsp;&nbsp;FEATURE<BR>&nbsp;&nbsp;&nbsp;POINTS<BR>&nbsp;&nbsp;&nbsp;&nbsp;10 480<BR>&nbsp;&nbsp;&nbsp;END<BR>&nbsp;&nbsp;&nbsp;TEXT 'Made with Mapserver.'<BR>&nbsp;&nbsp;END<BR>&nbsp;&nbsp;CLASS<BR>&nbsp;&nbsp;&nbsp;LABEL<BR>&nbsp;&nbsp;&nbsp;&nbsp;TYPE BITMAP<BR>&nbsp;&nbsp;&nbsp;&nbsp;POSITION CR<BR>&nbsp;&nbsp;&nbsp;&nbsp;COLOR 0 0 0<BR>&nbsp;&nbsp;&nbsp;END<BR>&nbsp;&nbsp;END<BR>&nbsp;END<BR>END<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>usa3.map</DIV>
<DIV>&nbsp;</DIV>
<DIV>MAP<BR>&nbsp;&nbsp;&nbsp; NAME USA3<BR>&nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; IMAGETYPE PNG<BR>&nbsp;&nbsp;&nbsp; SIZE 800 500<BR>&nbsp;&nbsp;&nbsp; SHAPEPATH "/mypath"<BR>&nbsp;&nbsp;&nbsp; EXTENT -6086744.000 -2784127 4278894 4485901<BR>&nbsp;&nbsp;&nbsp; UNITS METERS<BR>&nbsp;&nbsp;&nbsp; PROJECTION "proj=laea" "lat_0=45" "lon_0=-100" "ellps=GRS80" "datum=NAD83" END<BR>&nbsp;&nbsp;WEB<BR>&nbsp;&nbsp;&nbsp;IMAGEPATH "/mypath/"<BR>&nbsp;&nbsp;&nbsp;IMAGEURL "/mypath/"<BR>&nbsp;&nbsp;END</DIV>
<DIV>&nbsp;&nbsp;LAYER<BR>&nbsp;&nbsp;&nbsp;NAME "Nighttime lights"<BR>&nbsp;&nbsp;&nbsp;TYPE RASTER<BR>&nbsp;&nbsp;&nbsp;STATUS ON<BR>&nbsp;&nbsp;&nbsp;DATA "/mypath/nitelti020l.tif"<BR>&nbsp;&nbsp;END</DIV>
<DIV>&nbsp;&nbsp;LAYER<BR>&nbsp;&nbsp;&nbsp;NAME "US state boundaries"<BR>&nbsp;&nbsp;&nbsp;TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp;STATUS ON<BR>&nbsp;&nbsp;&nbsp;DATA "statesp020"<BR>&nbsp;&nbsp;&nbsp;PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;"proj=latlong"<BR>&nbsp;&nbsp;&nbsp;&nbsp;"ellps=GRS80"<BR>&nbsp;&nbsp;&nbsp;&nbsp;"datum=NAD83"<BR>&nbsp;&nbsp;&nbsp;END<BR>&nbsp;&nbsp;&nbsp;CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;NAME "US states"<BR>&nbsp;&nbsp;&nbsp;&nbsp;OUTLINECOLOR 50 50 50<BR>&nbsp;&nbsp;&nbsp;&nbsp;SYMBOL 0<BR>&nbsp;&nbsp;&nbsp;END<BR>&nbsp;&nbsp;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>