<DIV>Sorry about the 2M file I didn't know it was so bad to send it.</DIV>
<DIV>Could someone respond to my question anyway, thankyou</DIV>
<DIV>&nbsp;</DIV>
<DIV>Jose Luis<BR><BR><B><I>Abe Gillespie &lt;agillesp@vt.edu&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Ha, you sent a 2Meg file to the list! Begin the chastising! :)<BR><BR>On Jan 24, 2005, at 10:33 AM, Jose Luis Gonzalez wrote:<BR><BR>&gt; Hi everyone.<BR>&gt; Lets see if someone can tell me what could be wrong.<BR>&gt; &nbsp;<BR>&gt; I am working with:<BR>&gt; MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP <BR>&gt; SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 <BR>&gt; INPUT=GDAL INPUT=SHAPEFILE<BR>&gt; I am using java servlets.<BR>&gt; &nbsp;<BR>&gt; when I use shapefiles :usa1.map it works but when I want to include a <BR>&gt; tif file it doesn't work: usa3.map, nitelti020l.tif<BR>&gt; &nbsp;<BR>&gt; The instructions I use are:<BR>&gt; &nbsp;<BR>&gt; for the first case that works:<BR>&gt; &nbsp;<BR>&gt; ...<BR>&gt; mapObj map = new mapObj("/mypath/usa1.map");<BR>&gt; imageObj img = map.draw();<BR>&gt; img.save("/mypath/usa1.png", map);<BR>&gt;
 ...<BR>&gt; out.println("<BR><IMG src="http://webbrowserpath/usa1.png">");<BR>&gt; &nbsp;<BR>&gt; For the second case with raster that doesn't work:<BR>&gt; &nbsp;<BR>&gt; ...<BR>&gt; mapObj map = new mapObj("/mypath/usa3.map");<BR>&gt; imageObj img = map.draw();<BR>&gt; img.save("/mypath/usa3.png", map);<BR>&gt; ...<BR>&gt; out.println("<BR><IMG src="http://webbrowserpath/usa3.png">");<BR>&gt; &nbsp;<BR>&gt; &nbsp;<BR>&gt; And here are the mapfiles:<BR>&gt; &nbsp;<BR>&gt; usa1.map<BR>&gt; &nbsp;<BR>&gt; MAP<BR>&gt; &nbsp;&nbsp;&nbsp; NAME USA1<BR>&gt; &nbsp;&nbsp;&nbsp; STATUS ON<BR>&gt; &nbsp;&nbsp;&nbsp; SIZE 800 500<BR>&gt; &nbsp;&nbsp;&nbsp; IMAGETYPE PNG<BR>&gt; &nbsp;&nbsp;&nbsp; IMAGECOLOR 240 240 240<BR>&gt; &nbsp;&nbsp;&nbsp; SHAPEPATH "/mypath"<BR>&gt; &nbsp;&nbsp;&nbsp; EXTENT -8000000 300000 5000000 1500000<BR>&gt; &nbsp;&nbsp;&nbsp; UNITS METERS<BR>&gt; &nbsp;&nbsp;&nbsp; PROJECTION<BR>&gt; &nbsp;&nbsp;"proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0"
 <BR>&gt; "y_0=0" "ellps=GRS80" "datum=NAD83"<BR>&gt; &nbsp;&nbsp;&nbsp; END<BR>&gt; &nbsp;&nbsp;&nbsp; WEB<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH "/mypath/"<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL "/mypath/"<BR>&gt; &nbsp;&nbsp;&nbsp; END<BR>&gt; &nbsp;<BR>&gt; &nbsp;LAYER<BR>&gt; &nbsp;&nbsp;NAME "US state boundaries"<BR>&gt; &nbsp;&nbsp;TYPE POLYGON<BR>&gt; &nbsp;&nbsp;STATUS ON<BR>&gt; &nbsp;&nbsp;DATA "statesp020"<BR>&gt; &nbsp;&nbsp;PROJECTION<BR>&gt; &nbsp;&nbsp;&nbsp;"proj=latlong"<BR>&gt; &nbsp;&nbsp;&nbsp;"ellps=GRS80"<BR>&gt; &nbsp;&nbsp;&nbsp;"datum=NAD83"<BR>&gt; &nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;CLASS<BR>&gt; &nbsp;&nbsp;&nbsp;NAME "US states"<BR>&gt; &nbsp;&nbsp;&nbsp;OUTLINECOLOR 60 60 60<BR>&gt; &nbsp;&nbsp;&nbsp;COLOR 255 255 0<BR>&gt; &nbsp;&nbsp;&nbsp;SYMBOL 0<BR>&gt; &nbsp;&nbsp;END<BR>&gt; &nbsp;END<BR>&gt; &nbsp;<BR>&gt; &nbsp;LAYER<BR>&gt; &nbsp;&nbsp;NAME "credits"<BR>&gt; &nbsp;&nbsp;STATUS DEFAULT<BR>&gt;
 &nbsp;&nbsp;TRANSFORM FALSE<BR>&gt; &nbsp;&nbsp;TYPE ANNOTATION<BR>&gt; &nbsp;&nbsp;FEATURE<BR>&gt; &nbsp;&nbsp;&nbsp;POINTS<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;10 480<BR>&gt; &nbsp;&nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;&nbsp;TEXT 'Made with Mapserver.'<BR>&gt; &nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;CLASS<BR>&gt; &nbsp;&nbsp;&nbsp;LABEL<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;TYPE BITMAP<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;POSITION CR<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;COLOR 0 0 0<BR>&gt; &nbsp;&nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;END<BR>&gt; &nbsp;END<BR>&gt; END<BR>&gt; &nbsp;<BR>&gt; usa3.map<BR>&gt; &nbsp;<BR>&gt; MAP<BR>&gt; &nbsp;&nbsp;&nbsp; NAME USA3<BR>&gt; &nbsp;&nbsp;&nbsp; STATUS ON<BR>&gt; &nbsp;&nbsp;&nbsp; IMAGETYPE PNG<BR>&gt; &nbsp;&nbsp;&nbsp; SIZE 800 500<BR>&gt; &nbsp;&nbsp;&nbsp; SHAPEPATH "/mypath"<BR>&gt; &nbsp;&nbsp;&nbsp; EXTENT -6086744.000 -2784127 4278894 4485901<BR>&gt; &nbsp;&nbsp;&nbsp; UNITS METERS<BR>&gt; &nbsp;&nbsp;&nbsp; PROJECTION "proj=laea" "lat_0=45" "lon_0=-100"
 "ellps=GRS80" <BR>&gt; "datum=NAD83" END<BR>&gt; &nbsp;&nbsp;WEB<BR>&gt; &nbsp;&nbsp;&nbsp;IMAGEPATH "/mypath/"<BR>&gt; &nbsp;&nbsp;&nbsp;IMAGEURL "/mypath/"<BR>&gt; &nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;LAYER<BR>&gt; &nbsp;&nbsp;&nbsp;NAME "Nighttime lights"<BR>&gt; &nbsp;&nbsp;&nbsp;TYPE RASTER<BR>&gt; &nbsp;&nbsp;&nbsp;STATUS ON<BR>&gt; &nbsp;&nbsp;&nbsp;DATA "/mypath/nitelti020l.tif"<BR>&gt; &nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;LAYER<BR>&gt; &nbsp;&nbsp;&nbsp;NAME "US state boundaries"<BR>&gt; &nbsp;&nbsp;&nbsp;TYPE POLYGON<BR>&gt; &nbsp;&nbsp;&nbsp;STATUS ON<BR>&gt; &nbsp;&nbsp;&nbsp;DATA "statesp020"<BR>&gt; &nbsp;&nbsp;&nbsp;PROJECTION<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;"proj=latlong"<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;"ellps=GRS80"<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;"datum=NAD83"<BR>&gt; &nbsp;&nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;&nbsp;CLASS<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;NAME "US states"<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;OUTLINECOLOR 50 50 50<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;SYMBOL
 0<BR>&gt; &nbsp;&nbsp;&nbsp;END<BR>&gt; &nbsp;&nbsp;END<BR>&gt; END<BR>&gt;<BR>&gt;<BR>&gt; <EMB25.GIF><NITELTI020L.TAR.GZ><BR></BLOCKQUOTE><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>