<!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>&nbsp; 
you MUST specify the pixel size not number of pixels&nbsp;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>&nbsp;</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&#367;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. &#345;íjna 2002 14:30<BR><B>Komu:</B> 
  mapserver-users@lists.gis.umn.edu<BR><B>P&#345;edm&#283;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>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I am a Mapserver newbie.&nbsp; Please Help 
  !!</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I am trying to&nbsp;display a raster image of 
  Harare.&nbsp; The raster file name is Harare.tif&nbsp;&nbsp; It is 8bit 
  uncompressed.&nbsp;&nbsp;13258x14646 pixels.&nbsp;&nbsp;&nbsp;I have made a 
  world file called Harare.wld&nbsp;&nbsp;They are in the C:\Rasters 
  directory</FONT></DIV>
  <DIV><FONT face=Arial size=2>The world file&nbsp;</FONT><FONT face=Arial 
  size=2>looks like this:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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 &nbsp;that 
  looks like this:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;&nbsp;&nbsp; "proj=longlat" 
  <BR>&nbsp;&nbsp;&nbsp; "ellps=WGS84" <BR>&nbsp;&nbsp;&nbsp; 
  "datum=WGS84"<BR>&nbsp;&nbsp;&nbsp; "no_defs"<BR>END<BR>IMAGECOLOR 18 23 
  89</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>LAYER<BR>&nbsp; NAME "Harare"<BR>&nbsp; DATA 
  "Harare.tif"<BR>&nbsp; TYPE RASTER<BR>&nbsp; STATUS ON<BR>END</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>END # end of map file<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>And an html file&nbsp; default.html that looks 
  like this:</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD 
  HTML//EN"&gt;<BR>&lt;html&gt;<BR>&nbsp;&lt;head&gt;<BR>&nbsp;&nbsp;&lt;title&gt;Harare 
  Map&lt;/title&gt;<BR>&nbsp;&lt;/head&gt;<BR>&nbsp;&lt;body 
  bgcolor="#ffffff"&gt;<BR>&nbsp;&nbsp;&lt;img border="1" 
  src="/cgi-bin/mapserv.exe?map=C:\Inetpub\wwwroot\map3\Harare.map&amp;mode=map"&gt;&lt;/p&gt;<BR>&nbsp;&lt;/body&gt;<BR>&lt;/html&gt;<BR></FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial 
size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Now I am not sure what I am doing wrong.&nbsp; 
  The mapserver outputs a dark blue image, same color as the imagecolor 
  statement in the mapfile.&nbsp; This means that the mapserver is working and 
  that my file permissions are ok.&nbsp; I am running under WinXP with 
  IIS5.1&nbsp;&nbsp; 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&nbsp;either&nbsp;the&nbsp;extent in 
  the mapfile is wrong or I have the world file wrong.&nbsp; I am not sure 
  which.&nbsp; The example of how to make world files is not very clear.&nbsp; 
  </FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Can anyone help ?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>James.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>&nbsp;</DIV></BLOCKQUOTE></FONT></BODY></HTML>