<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> </DIV>
<DIV>Jose Luis<BR><BR><B><I>Abe Gillespie <agillesp@vt.edu></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>> Hi everyone.<BR>> Lets see if someone can tell me what could be wrong.<BR>> <BR>> I am working with:<BR>> MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP <BR>> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 <BR>> INPUT=GDAL INPUT=SHAPEFILE<BR>> I am using java servlets.<BR>> <BR>> when I use shapefiles :usa1.map it works but when I want to include a <BR>> tif file it doesn't work: usa3.map, nitelti020l.tif<BR>> <BR>> The instructions I use are:<BR>> <BR>> for the first case that works:<BR>> <BR>> ...<BR>> mapObj map = new mapObj("/mypath/usa1.map");<BR>> imageObj img = map.draw();<BR>> img.save("/mypath/usa1.png", map);<BR>>
...<BR>> out.println("<BR><IMG src="http://webbrowserpath/usa1.png">");<BR>> <BR>> For the second case with raster that doesn't work:<BR>> <BR>> ...<BR>> mapObj map = new mapObj("/mypath/usa3.map");<BR>> imageObj img = map.draw();<BR>> img.save("/mypath/usa3.png", map);<BR>> ...<BR>> out.println("<BR><IMG src="http://webbrowserpath/usa3.png">");<BR>> <BR>> <BR>> And here are the mapfiles:<BR>> <BR>> usa1.map<BR>> <BR>> 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"
<BR>> "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>> <BR>> usa3.map<BR>> <BR>> 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" <BR>> "datum=NAD83" END<BR>> WEB<BR>> IMAGEPATH "/mypath/"<BR>> IMAGEURL "/mypath/"<BR>> END<BR>> LAYER<BR>> NAME "Nighttime lights"<BR>> TYPE RASTER<BR>> STATUS ON<BR>> DATA "/mypath/nitelti020l.tif"<BR>> END<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 50 50 50<BR>> SYMBOL
0<BR>> END<BR>> END<BR>> END<BR>><BR>><BR>> <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>