<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am a Mapserver newbie. Please Help
!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am trying to display a raster image of
Harare. The raster file name is Harare.tif It is 8bit
uncompressed. 13258x14646 pixels. I have made a
world file called Harare.wld They are in the C:\Rasters
directory</FONT></DIV>
<DIV><FONT face=Arial size=2>The world file </FONT><FONT face=Arial
size=2>looks like this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>13258<BR>0.0000000000<BR>0.0000000000<BR>-14646<BR>30.873957<BR></FONT><FONT
face=Arial size=2>-17.680917</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The top left corner of the image is at 30.873957 X
and -17.680917 Y</FONT></DIV>
<DIV><FONT face=Arial size=2>I have made a map file Harare.map that looks
like this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>NAME EX1<BR>EXTENT -18.170 -35.000 54.531
38.020<BR>SIZE 400 400<BR>SHAPEPATH
"C:\Rasters"<BR>PROJECTION<BR> "proj=longlat"
<BR> "ellps=WGS84" <BR>
"datum=WGS84"<BR> "no_defs"<BR>END<BR>IMAGECOLOR 18 23
89</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>LAYER<BR> NAME "Harare"<BR> DATA
"Harare.tif"<BR> TYPE RASTER<BR> STATUS ON<BR>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>END # end of map file<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>And an html file default.html that looks like
this:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><!DOCTYPE HTML PUBLIC "-//IETF//DTD
HTML//EN"><BR><html><BR> <head><BR> <title>Harare
Map</title><BR> </head><BR> <body
bgcolor="#ffffff"><BR> <img border="1"
src="/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\map3\Harare.map&mode=map"></p><BR> </body><BR></html><BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Now I am not sure what I am doing wrong. The
mapserver outputs a dark blue image, same color as the imagecolor statement in
the mapfile. This means that the mapserver is working and that my file
permissions are ok. I am running under WinXP with IIS5.1 You
can see my image at <A
href="http://www.thebeastie.net/map3/">http://www.thebeastie.net/map3/</A></FONT></DIV>
<DIV><FONT face=Arial size=2>I think that either the extent in
the mapfile is wrong or I have the world file wrong. I am not sure
which. The example of how to make world files is not very clear.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anyone help ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>James.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>