Raffle -

You know how to set the georeference information for your TIF file (by creating 
the TFW file).  But you don't know what numbers to use.

I cannot tell you the geographic parameters of your image - you need to find 
that out.  If you need to integrate it with other data layers, you need to know 
the extents and resolution of the raster image; if it is not the same 
projection as your other layers, then you need to know the details of the 
projection, too.  If the raster image is not georeferenced you need to (a) go 
back to the source of the image and get that information, or (b) locate several 
known coordinate points on the image and calculate the image parameters (a 
tedious and not-very-accurate process in most cases).

        - Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
[EMAIL PROTECTED]
(978) 251-4242  

-----Original Message-----
From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of grabiel
Sent: Wednesday, May 10, 2006 2:44 AM
To: [email protected]
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file


Hi
  Ed
    You are right. I didnot set any georeference information set or project 
information in the .tif file. I simply took one image and trying to display it 
along with other layers. Also i need to integrate the image with other layer. 
Can you please tell me how to set the georeference/projection information in my 
.tif file. 

Thanks in advance.
Raffle




 --- On Tue 05/09, Ed McNierney < [EMAIL PROTECTED] > wrote:
From: Ed McNierney [mailto: [EMAIL PROTECTED]
To: [email protected]
Date: Tue, 9 May 2006 08:21:23 -0400
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file

<!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=190061912-09052006><FONT face=Arial color=#0000ff 
size=2>Raffle -</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN 
class=190061912-09052006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN 
class=190061912-09052006><FONT face=Arial color=#0000ff size=2>That's an 
important difference!  If you have a TFW file in the first place, gdalinfo will 
simply return its contents to you. So you're using the contents of your TFW 
file to decide what information to put in your TFW file....</FONT></SPAN></DIV> 
<DIV dir=ltr align=left><SPAN class=190061912-09052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN 
class=190061912-09052006><FONT face=Arial color=#0000ff size=2>You seem to have 
no georeferencing information in that file.  What information do you have about 
the projection and coordinate extents of that input image?  Do you need to only 
display this single layer, or do you need to integrate it with other data 
layers?</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN 
class=190061912-09052006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN 
class=190061912-09052006><FONT face=Arial color=#0000ff size=2>     - 
Ed</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN 
class=190061912-09052006><!-- Converted from text/plain format --> <P><FONT 
size=2>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>[EMAIL 
PROTECTED]</FONT> </P></SPAN></DIV><BR> <DIV class=OutlookMessageHeader 
lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma 
size=2><B>From:</B> UMN MapServer Users List [mailto:[EMAIL PROTECTED] <B>On 
Behalf Of </B>raffle peter<BR><B>Sent:</B> Tuesday, May 09, 2006 3:32 
AM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> Re: 
[UMN_MAPSERVER-USERS] Help needed in Raster/World file<BR></FONT><BR></DIV> 
<DIV></DIV> <DIV>Hi</DIV> <DIV>   Ed</DIV> <DIV>        I changed the status 
from On to Default but still its not working. One thing i want to tell you that 
if i delete the .tfw file the output of gdalinfo also changed which like 
this---></DIV> <DIV> </DIV> <DIV>  #gdalinfo test.tif  ### Without test.tfw 
file ######</DIV>
<DIV>Driver: Gtiff/GeoTiff</DIV>
<DIV>Size is 1042, 722</DIV>
<DIV>Co-ordinate System is `'</DIV>
<DIV>METADATA</DIV>
<DIV>----------</DIV>
<DIV>----------</DIV>
<DIV>Upper Left (0.0, 0.0)</DIV>
<DIV>Lower left (0.0, 722.0)</DIV>
<DIV>Upper right (1042.0, 0.0)</DIV>
<DIV>center(521.0, 361.0)</DIV>
<DIV> </DIV>
<DIV>Band 1 Block=1024*64 TYPE=BYTE, ColorInterp=RED</DIV> 
<DIV>..........................................................................=Green</DIV>
<DIV>......................................................................=BLUE</DIV>
<DIV> </DIV>
<DIV>Then what will be my values in my .tfw file? Now if i put the values in my 
.tfw file then the output of my gdalinfo also changed according to the values 
that i put there.</DIV> <DIV> </DIV> <DIV>Where is the problem? Whether i need 
to put Projection statement in my mapfile?</DIV> <DIV>Please help me </DIV> 
<DIV>Thanks in advance</DIV> <DIV>Raffle<BR><BR><B><I>Ed McNierney <[EMAIL 
PROTECTED]></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
  <META content="MSHTML 6.00.2900.2873" name=GENERATOR>
  <DIV dir=ltr align=left><SPAN class=290361611-08052006><FONT face=Arial
  color=#0000ff size=2>Raffle -</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=290361611-08052006><FONT face=Arial
  color=#0000ff size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=290361611-08052006><FONT face=Arial
  color=#0000ff size=2>If you set your LAYER to STATUS ON it won't display - you
  need to set it to STATUS DEFAULT.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=290361611-08052006><FONT face=Arial
  color=#0000ff size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=290361611-08052006><FONT face=Arial
  color=#0000ff size=2>     - Ed</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=290361611-08052006><!-- Converted from 
text/plain format -->
  <DIV><FONT size=2>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>[EMAIL PROTECTED]</FONT> </DIV></SPAN></DIV><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List
  [mailto:[EMAIL PROTECTED] <B>On Behalf Of </B>raffle
  peter<BR><B>Sent:</B> Monday, May 08, 2006 7:12 AM<BR><B>To:</B>
  [email protected]<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS]
  Help needed in Raster/World file<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>Hi</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT
  color=#0000ff>    I have given the mapfile below and after
  modifying the value as you suggested in</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT
  color=#0000ff>your previous, I am not getting the raster image on my final
  output.</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT
  color=#0000ff></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT
  color=#0000ff>Thanks in advance</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT
  color=#0000ff>Raffle</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT
  color=#0000ff></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT size=2>
  <DIV> </DIV>
  <DIV>NAME "Europe"</DIV>
  <DIV>SIZE 200 200</DIV>
  <DIV>STATUS ON</DIV>
  <DIV>SYMBOLSET ....."</DIV>
  <DIV>EXTENT 2700051.860 2462746.020 3582564.801 3012459.468</DIV>
  <DIV>UNITS METERS</DIV>
  <DIV>SHAPEPATH " "</DIV>
  <DIV></DIV>
  <DIV>WEB</DIV>
  <DIV>IMAGEPATH ""</DIV>
  <DIV>IMAGEURL ""</DIV>
  <DIV>END</DIV>
  <DIV>.......</DIV>
  <DIV>LAYER</DIV>
  <DIV>DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif"</DIV>
  <DIV>NAME "raster_back"</DIV>
  <DIV>TYPE RASTER</DIV>
  <DIV>STATUS ON </DIV>
  <DIV>END</DIV>
  <DIV></DIV>
  <DIV>END</DIV></FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006></SPAN><SPAN
  class=049394813-06052006></SPAN><SPAN class=049394813-06052006></SPAN><SPAN
  class=049394813-06052006><FONT face=Arial color=#0000ff
  size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>Raffle -</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>Zero is a perfectly nice number!  There's nothing
  wrong with 0.0 in your world file, especially in the second and third
  lines.  For the vast majority of raster images you will find that the
  fourth line is the same as the first line with the sign reversed, and the
  second and third lines are 0.0.  A world file will often look
  like:</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>100.0</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>0.0</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>0.0</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>-100.0</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>12345.67</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2>987654.32</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><FONT face=Arial
  color=#0000ff size=2></FONT></SPAN> </DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006>
  <FONT face=Arial color=#0000ff size=2>- Ed</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN class=049394813-06052006><!-- Converted from 
text/plain format -->
  <DIV><FONT size=2>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>[EMAIL PROTECTED]</FONT> </DIV></SPAN></DIV><BR>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List
  [mailto:[EMAIL PROTECTED] <B>On Behalf Of </B>raffle
  peter<BR><B>Sent:</B> Saturday, May 06, 2006 9:07 AM<BR><B>To:</B>
  [email protected]<BR><B>Subject:</B> [UMN_MAPSERVER-USERS] Help
  needed in Raster/World file<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV> </DIV>
  <DIV> Hi</DIV>
  <DIV>     I am trying to include a .tif file for raster
  background. For that i have to write a .tfw(world file) for the corresponding
  .tif file. The information that i need to put in the world file are X, Y Pixel
  size, rotational co-efficient and X, Y location of the center of the top left
  pixel. I am trying to find these values by using gdalinfo-- but some values
  are 0.0</DIV>
  <DIV>in their corresponding field.</DIV>
  <DIV>   Can anyone plz help me, how to get/set these values for the
  world file so that i can</DIV>
  <DIV>keep my raster data georeferenced with other layers in my mapfile.</DIV>
  <DIV> </DIV>
  <DIV>Thanks in advance</DIV>
  <DIV>Raffle</DIV>
  <DIV>   </DIV>
  <DIV>
  <HR SIZE=1>
  <FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>24 FIFA World Cup
  tickets to be won with Yahoo! Mail. <A
  
href="http://us.rd.yahoo.com/mail/uk/taglines/default/fifa_trueswitch/*http://eur.i1.yimg.com/java.europe.yahoo.com/uk/mail/fu/trueswitch/index.html";>Learn
  more</A> </FONT></DIV></BLOCKQUOTE><BR> <P> <HR SIZE=1> <FONT face=Arial 
size=2><A 
href="http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http://uk.photos.yahoo.com/";><B>Yahoo!
 
Photos</B></A> - <FONT color=red>NEW</FONT>, now offering a <A 
href="http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http://uk.photos.yahoo.com/";>quality
print service</A> from just 7p a photo.</FONT></BODY></HTML> <p>

_______________________________________________
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com

Reply via email to