<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2>Raffle -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2>gdalinfo is telling you that the upper left corner is at 
(-521, -371) but you've put (-521, 371) in your tfw file.&nbsp; Given your 
coordinates that shouldn't matter much, however.&nbsp; Could you post your MAP 
file so we can see the EXTENT and other settings you're using?&nbsp; That's a 
somewhat unusual-looking raster image, but it should be OK if set up 
properly.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; - Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2>Ed McNierney</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial 
color=#0000ff size=2>TopoZone.com</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> raffle peter [mailto:raffle80@yahoo.co.uk] 
<BR><B>Sent:</B> Sunday, May 07, 2006 4:57 AM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Cc:</B> Ed McNierney<BR><B>Subject:</B> Re: 
[UMN_MAPSERVER-USERS] Help needed in Raster/World file<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hi<BR>&nbsp; Yeha thats fine and i ahve used the values from my gdainfo 
to<BR>&nbsp;.tfw file but it all the same. But if i use the mapserver 
demo<BR>&nbsp; application's .tif file(Which is anyway not similar to 
projection<BR>&nbsp; that i am using) it is coming in the browser along with 
other<BR>&nbsp; layer. So i assume my values in the .tfw files are wrong. I 
have&nbsp;&nbsp; </DIV>
<DIV>given the output of gdalinfo as well as the .tfw file below.</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp; @localhost# gdalinfo test.tif<BR>&nbsp;&nbsp; &gt; Driver 
....<BR>&nbsp;&nbsp; &gt; Size is 1042, 722<BR>&nbsp;&nbsp; &gt; Coordinate 
System is `'<BR>&nbsp;&nbsp; &gt; Origin = (-521.000000, 
-371.000000)<BR>&nbsp;&nbsp; &gt; Pixel Size = (1042.0000000, 742.0000000)</DIV>
<DIV>&nbsp;&nbsp; &gt;Metadata:<BR>&nbsp;&nbsp; 
&gt;TIFF.........<BR>&nbsp;&nbsp; &gt;........<BR>&nbsp;&nbsp; 
&gt;........<BR>&nbsp;&nbsp; &gt;TIFFFLAGXRESOLUTION = 96<BR>&nbsp;&nbsp; 
&gt;TIFFFLAGYRESOLUTION = 96<BR>&nbsp;&nbsp; 
&gt;TIFFFLAG-RESOLUTIONUNIT=2(PIXEL/INCH)</DIV>
<DIV>&nbsp;&nbsp; &gt;Corner Co-ordinates:</DIV>
<DIV>&nbsp;&nbsp; &gt; Upper left(-521.000, -371.000)<BR>&nbsp;&nbsp; &gt; Lower 
left(-521.000, 535353.000)<BR>&nbsp;&nbsp; &gt;Upper right(1085243.000, 
-371.000)<BR>&nbsp;&nbsp; &gt;Lower Right(1085243.000, 
535353.000)<BR>&nbsp;&nbsp; &gt;center(542361.000, 267491.000)</DIV>
<DIV>And My test.tfw file for test.tif is something like this--&gt;</DIV>
<DIV>&nbsp; 1042.0<BR>&nbsp; 0.0<BR>&nbsp; 0.0<BR>&nbsp; 742.0<BR>&nbsp; 
-521<BR>&nbsp; 371<BR>&nbsp;<BR>&nbsp;I have not used any projection statement 
in my </DIV>
<DIV>mapfile/phpmapscript.<BR>Plz. guide me. <BR>Raffle</DIV>
<DIV>&nbsp;</DIV>
<DIV>On Sat, 06 May 2006 Ed McNierney wrote :<BR>&gt;Raffle 
-<BR>&gt;<BR>&gt;Zero is a perfectly nice number!&nbsp; There's nothing wrong 
with 0.0 in your<BR>&gt;world file, especially in the second and third 
lines.&nbsp; For the vast<BR>&gt;majority of raster images you will find that 
the fourth line is the same<BR>&gt;as the first line with the sign reversed, and 
the second and third lines<BR>&gt;are 0.0.&nbsp; A world file will often look 
like:<BR>&gt;<BR>&gt;100.0<BR>&gt;0.0<BR>&gt;0.0<BR>&gt;-100.0<BR>&gt;12345.67<BR>&gt;987654.32<BR>&gt;<BR>&gt;&nbsp; 
&nbsp; - Ed<BR>&gt;Ed McNierney<BR>&gt;President and Chief 
Mapmaker<BR>&gt;TopoZone.com / Maps a la carte, Inc.<BR>&gt;73 Princeton Street, 
Suite 305<BR>&gt;North Chelmsford, MA&nbsp; 01863<BR>&gt;Phone: +1 (978) 
251-4242<BR>&gt;Fax: +1 (978) 
251-1396<BR>&gt;ed@topozone.com<BR>&gt;<BR>&gt;<BR>&gt;________________________________<BR>&gt;<BR>&gt; 
From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] 
On<BR>&gt;Behalf Of raffle peter<BR>&gt;Sent: Saturday, May 06, 2006 9:07 
AM<BR>&gt;To: MAPSERVER-USERS@LISTS.UMN.EDU<BR>&gt;Subject: 
[UMN_MAPSERVER-USERS] Help needed in Raster/World 
file<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp; Hi<BR>&gt;&nbsp; &nbsp; &nbsp; I am 
trying to include a .tif file for raster background. For that<BR>&gt;i have to 
write a .tfw(world file) for the corresponding .tif file. The<BR>&gt;information 
that i need to put in the world file are X, Y Pixel size,<BR>&gt;rotational 
co-efficient and X, Y location of the center of the top left<BR>&gt;pixel. I am 
trying to find these values by using gdalinfo-- but some<BR>&gt;values are 
0.0<BR>&gt;in their corresponding field.<BR>&gt;&nbsp; &nbsp; Can anyone plz 
help me, how to get/set these values for the world<BR>&gt;file so that i 
can<BR>&gt;keep my raster data georeferenced with other layers in my 
mapfile.<BR>&gt;<BR>&gt;Thanks in 
advance<BR>&gt;Raffle<BR>&gt;<BR>&gt;<BR>&gt;________________________________<BR>&gt;<BR>&gt;To 
help you stay safe and secure online, we've developed the all new<BR>&gt;Yahoo! 
Security 
Centre<BR>&gt;&lt;http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http:/<BR>&gt;/uk.security.yahoo.com/&gt; 
.<BR></DIV>
<BLOCKQUOTE class=replbq 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR><BR><A 
  href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG 
  hspace=0 
  src="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&amp;PARTNER=3" 
  border=0 NOSEND="1"></A> </BLOCKQUOTE><BR>
<P>Send instant messages to your online friends http://uk.messenger.yahoo.com 
</P></BODY></HTML>