<!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.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=945135415-10102002><FONT face=Arial color=#0000ff size=2>Hi
James,</FONT></SPAN></DIV>
<DIV><SPAN class=945135415-10102002><FONT face=Arial color=#0000ff size=2>
you MUST specify the pixel size not number of pixels at the 1. and 4. row
of your wld file.</FONT></SPAN></DIV>
<DIV><SPAN class=945135415-10102002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=945135415-10102002><FONT color=#0000ff>
<P><FONT face=Arial size=2><SPAN class=945135415-10102002>Stepan
Kafka<BR></SPAN></FONT><FONT face=Arial size=2>Help Service Remote
Sensing<BR>tel: +420-327514118<BR></FONT><A href="mailto:kafka@email.cz"
target=_blank><FONT face=Arial size=2>mailto:kafka@email.cz</FONT></A><BR><A
href="http://www.bnhelp.cz/" target=_blank><FONT face=Arial
size=2>http://www.bnhelp.cz</FONT></A><FONT face=Arial size=2>
</FONT></P></FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Původní zpráva-----<BR><B>Od:</B>
owner-mapserver-users@lists.gis.umn.edu
[mailto:owner-mapserver-users@lists.gis.umn.edu]<B>za uživatele</B> James
Anderson<BR><B>Odesláno:</B> 10. října 2002 14:30<BR><B>Komu:</B>
mapserver-users@lists.gis.umn.edu<BR><B>Předmět:</B> [mapserver-users] Problem
with rasters and world files<BR><BR></FONT></DIV>
<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></BLOCKQUOTE></FONT></BODY></HTML>