Help needed in Raster/World file
Ed McNierney
ed at TOPOZONE.COM
Tue May 9 05:21:23 PDT 2006
Raffle -
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....
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?
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com
________________________________
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of raffle peter
Sent: Tuesday, May 09, 2006 3:32 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World file
Hi
Ed
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--->
#gdalinfo test.tif ### Without test.tfw file ######
Driver: Gtiff/GeoTiff
Size is 1042, 722
Co-ordinate System is `'
METADATA
----------
----------
Upper Left (0.0, 0.0)
Lower left (0.0, 722.0)
Upper right (1042.0, 0.0)
center(521.0, 361.0)
Band 1 Block=1024*64 TYPE=BYTE, ColorInterp=RED
........................................................................
..=Green
......................................................................=B
LUE
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.
Where is the problem? Whether i need to put Projection statement in my
mapfile?
Please help me
Thanks in advance
Raffle
Ed McNierney <ed at topozone.com> wrote:
Raffle -
If you set your LAYER to STATUS ON it won't display - you need
to set it to STATUS DEFAULT.
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com
________________________________
From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Monday, May 08, 2006 7:12 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Help needed in Raster/World
file
Hi
I have given the mapfile below and after modifying the value
as you suggested in
your previous, I am not getting the raster image on my final
output.
Thanks in advance
Raffle
NAME "Europe"
SIZE 200 200
STATUS ON
SYMBOLSET ....."
EXTENT 2700051.860 2462746.020 3582564.801 3012459.468
UNITS METERS
SHAPEPATH " "
WEB
IMAGEPATH ""
IMAGEURL ""
END
.......
LAYER
DATA "/usr/local/apache/htdocs/gmap/htdocs/data/europe.tif"
NAME "raster_back"
TYPE RASTER
STATUS ON
END
END
Raffle -
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:
100.0
0.0
0.0
-100.0
12345.67
987654.32
- Ed
Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA 01863
Phone: +1 (978) 251-4242
Fax: +1 (978) 251-1396
ed at topozone.com
________________________________
From: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of raffle peter
Sent: Saturday, May 06, 2006 9:07 AM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: [UMN_MAPSERVER-USERS] Help needed in Raster/World file
Hi
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
in their corresponding field.
Can anyone plz help me, how to get/set these values for the
world file so that i can
keep my raster data georeferenced with other layers in my
mapfile.
Thanks in advance
Raffle
________________________________
24 FIFA World Cup tickets to be won with Yahoo! Mail. Learn more
<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>
________________________________
Yahoo! Photos
<http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http://uk.photo
s.yahoo.com/> - NEW, now offering a quality print service
<http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http://uk.photo
s.yahoo.com/> from just 7p a photo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060509/d7171bf6/attachment.htm>
More information about the MapServer-users
mailing list