<!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> </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. Given your
coordinates that shouldn't matter much, however. Could you post your MAP
file so we can see the EXTENT and other settings you're using? 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> </DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial
color=#0000ff size=2> - Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=002140412-07052006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </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> Yeha thats fine and i ahve used the values from my gdainfo
to<BR> .tfw file but it all the same. But if i use the mapserver
demo<BR> application's .tif file(Which is anyway not similar to
projection<BR> that i am using) it is coming in the browser along with
other<BR> layer. So i assume my values in the .tfw files are wrong. I
have </DIV>
<DIV>given the output of gdalinfo as well as the .tfw file below.</DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV> @localhost# gdalinfo test.tif<BR> > Driver
....<BR> > Size is 1042, 722<BR> > Coordinate
System is `'<BR> > Origin = (-521.000000,
-371.000000)<BR> > Pixel Size = (1042.0000000, 742.0000000)</DIV>
<DIV> >Metadata:<BR>
>TIFF.........<BR> >........<BR>
>........<BR> >TIFFFLAGXRESOLUTION = 96<BR>
>TIFFFLAGYRESOLUTION = 96<BR>
>TIFFFLAG-RESOLUTIONUNIT=2(PIXEL/INCH)</DIV>
<DIV> >Corner Co-ordinates:</DIV>
<DIV> > Upper left(-521.000, -371.000)<BR> > Lower
left(-521.000, 535353.000)<BR> >Upper right(1085243.000,
-371.000)<BR> >Lower Right(1085243.000,
535353.000)<BR> >center(542361.000, 267491.000)</DIV>
<DIV>And My test.tfw file for test.tif is something like this--></DIV>
<DIV> 1042.0<BR> 0.0<BR> 0.0<BR> 742.0<BR>
-521<BR> 371<BR> <BR> I have not used any projection statement
in my </DIV>
<DIV>mapfile/phpmapscript.<BR>Plz. guide me. <BR>Raffle</DIV>
<DIV> </DIV>
<DIV>On Sat, 06 May 2006 Ed McNierney wrote :<BR>>Raffle
-<BR>><BR>>Zero is a perfectly nice number! There's nothing wrong
with 0.0 in your<BR>>world file, especially in the second and third
lines. For the vast<BR>>majority of raster images you will find that
the fourth line is the same<BR>>as the first line with the sign reversed, and
the second and third lines<BR>>are 0.0. A world file will often look
like:<BR>><BR>>100.0<BR>>0.0<BR>>0.0<BR>>-100.0<BR>>12345.67<BR>>987654.32<BR>><BR>>
- Ed<BR>>Ed McNierney<BR>>President and Chief
Mapmaker<BR>>TopoZone.com / Maps a la carte, Inc.<BR>>73 Princeton Street,
Suite 305<BR>>North Chelmsford, MA 01863<BR>>Phone: +1 (978)
251-4242<BR>>Fax: +1 (978)
251-1396<BR>>ed@topozone.com<BR>><BR>><BR>>________________________________<BR>><BR>>
From: UMN MapServer Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU]
On<BR>>Behalf Of raffle peter<BR>>Sent: Saturday, May 06, 2006 9:07
AM<BR>>To: MAPSERVER-USERS@LISTS.UMN.EDU<BR>>Subject:
[UMN_MAPSERVER-USERS] Help needed in Raster/World
file<BR>><BR>><BR>><BR>> Hi<BR>> I am
trying to include a .tif file for raster background. For that<BR>>i have to
write a .tfw(world file) for the corresponding .tif file. The<BR>>information
that i need to put in the world file are X, Y Pixel size,<BR>>rotational
co-efficient and X, Y location of the center of the top left<BR>>pixel. I am
trying to find these values by using gdalinfo-- but some<BR>>values are
0.0<BR>>in their corresponding field.<BR>> Can anyone plz
help me, how to get/set these values for the world<BR>>file so that i
can<BR>>keep my raster data georeferenced with other layers in my
mapfile.<BR>><BR>>Thanks in
advance<BR>>Raffle<BR>><BR>><BR>>________________________________<BR>><BR>>To
help you stay safe and secure online, we've developed the all new<BR>>Yahoo!
Security
Centre<BR>><http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http:/<BR>>/uk.security.yahoo.com/>
.<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&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>