<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
&nbsp;&nbsp;&nbsp; Hi.&nbsp; I posted last week about trying to get an image that I already have to be displayed on a layer with help from a world file.&nbsp; That all works.&nbsp; Now, I have new questions.<br><br>&nbsp;&nbsp;&nbsp; My world file is using the UTM projection.&nbsp; The tricky part now is that I need to specify in my map file the extent in latitudes and longitudes.&nbsp; I have the appropriate geocodes, and I know that a world file and extent are lower left x,y then top right x,y and that an image is top left x,y then bottom right x,y.&nbsp; So I have all that compensated for, otherwise I wouldn't have gotten it working in meters for UTM as my extent.&nbsp; I've tried entering in the geocodes as the extent for the MAP object.&nbsp; That didn't work.&nbsp; So, I figured "I'm using UTM in my world file.&nbsp; Maybe I need to specify latlong projection for the MAP object."&nbsp; That didn't work either.&nbsp; I then tried adding that same projection to the one layer that I have.&nbsp; No luck.&nbsp; The image comes up blank once again.&nbsp; And yes, I've read the section on rasters.<br><br>My questions:<br>How do I switch from using Meters as my extent to geocodes?<br>Do I need to use UTM for my world file?&nbsp; Every example I've seen on the net uses UTM.&nbsp; I've tried geocodes for the world file, but gdalinfo &lt;image&gt; indicates that the corner coordinates are totally off.<br><br>
The .php file is nothing special or elaborate.&nbsp; It just simply creates the image and draws it.<br><br>My world file:<br>1<br>0.0000000000<br>0.0000000000<br>-1<br>393898.00<br>4438945.00<br><br>My map file&nbsp; (I have the projections commented out as well as the EXTENT in METERS that worked)<br>MAP<br>&nbsp;&nbsp;&nbsp; NAME UniversityOfIllinois<br>&nbsp;&nbsp;&nbsp; STATUS ON<br>&nbsp;&nbsp;&nbsp; SIZE 1747 1916<br>&nbsp;&nbsp;&nbsp; IMAGETYPE GIF&nbsp;&nbsp;&nbsp; #image is 1747 X 1916 pixels<br>&nbsp;&nbsp;&nbsp; #PROJECTION<br>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; "proj=latlong"<br>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; "ellps=WGS84"<br>&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; "datum=NAD83"<br>&nbsp;&nbsp;&nbsp; #END<br>&nbsp;&nbsp;&nbsp; #EXTENT 393897.50 4437029.50 395644.50 4438945.50<br>&nbsp;&nbsp;&nbsp; #UNITS METERS<br>&nbsp;&nbsp;&nbsp; EXTENT 40.071888 -88.244698 40.094110 -88.217468<br>&nbsp;&nbsp;&nbsp; SHAPEPATH "/var/www/mapserver/basic/data/illinois/"<br>&nbsp;&nbsp;&nbsp; IMAGECOLOR 255 255 255<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; OUTPUTFORMAT<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME thegif<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DRIVER "GD/GIF"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MIMETYPE "image/gif"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEMODE RGB<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXTENSION "gif"<br>&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp; OUTPUTFORMAT<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME thepng<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DRIVER "GD/PNG"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MIMETYPE "image/png"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEMODE PC256<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXTENSION "png"<br>&nbsp;&nbsp;&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; WEB<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEPATH "/var/www/mapserver/basic/images/"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; IMAGEURL "/mapserver/basic/images/"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<br><br>&nbsp;&nbsp;&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME "UofI"<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA "colorUofIllinois.gif"<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE RASTER<br>&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STATUS DEFAULT<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #PROJECTION<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; "proj=latlong"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; "ellps=WGS84"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp; "datum=NAD83"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #END<br>&nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp; <br>END<br><br>Any extra info needed:<br>MapServer version 4.10.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG<br><br>Any help would be spectacular.&nbsp; Thanks advance.<br><br>&nbsp;- Chris<br><br /><hr />Gear up for Halo® 3 and get a $25 Best Buy gift card. It’s our way of saying thanks for using Windows Live™. <a href='http://gethalo3gear.com?ocid=SeptemberWLHalo3_WLHMTxt_1' target='_new'>Get it now!</a></body>
</html>