<!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.2800.1491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Jose Luis,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> Make sure the .tfw files are in the same directory as
the image files and named the same (except for the prefix part). For
example,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> image1.tif</FONT></DIV>
<DIV><FONT size=2> image1.tfw</FONT></DIV>
<DIV><FONT size=2>
image2.tif</FONT></DIV>
<DIV><FONT size=2>
image2.tfw</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>The tfw file is associated with the image file automatically
based on the file name.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Brent</FONT></DIV>
<DIV><FONT size=2> </FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=joseluismapserver@YAHOO.ES
href="mailto:joseluismapserver@YAHOO.ES">Jose Luis Gonzalez</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=MAPSERVER-USERS@LISTS.UMN.EDU
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 09, 2005 3:59
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] .map
and .tab files</DIV>
<DIV><BR></DIV>
<DIV>Hi Brent and all the rest.</DIV>
<DIV> </DIV>
<DIV>I have resolved the problem just as I told you, thanks to your solution,
but I have a problem related to it, and I do not know how to solve it.</DIV>
<DIV> </DIV>
<DIV>In the begining I only was using one map, so I included the .tfw file
manually en th WEB-INF directory and that was all. But now I use many maps,
and I have to include the correct .tfw file depending on the map I use.</DIV>
<DIV> </DIV>
<DIV>So is there any mapserver instruction so I can associate the .tfw to the
mapObj I am generating? Or what is the way of doing it?</DIV>
<DIV> </DIV>
<DIV>Thank you to all</DIV>
<DIV> </DIV>
<DIV>Jose Luis</DIV>
<DIV> </DIV>
<DIV>P.D. I am using Linux, and Mapserver 4.4.1</DIV>
<DIV><BR><BR><B><I>Brent Fraser <bfraser@GEOANALYTIC.COM></I></B>
wrote:</DIV>
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">For
a world file description, have a look
at:<BR>http://lists.umn.edu/cgi-bin/wa?A2=ind0501&L=mapserver-users&P=R31342&I=-3&X=5DD2E75F03
DF29CF75<BR><BR>Sorry about the ellps info (it's not Clark 1866). Your tab
file shows 1001<BR>as the datum code. From the MapInfo doc, this indicates a
datum of Pulkovo<BR>1942, which uses the the Krassovsky ellipsoid. Your
PROJECTION object<BR>should i nclude the Proj4 keyword of
"ellps=krass"<BR><BR>Brent<BR><BR><BR><BR>----- Original Message
-----<BR>From: Jose Luis Gonzalez<BR>To:
MAPSERVER-USERS@LISTS.UMN.EDU<BR>Sent: Monday, January 31, 2005 8:52
AM<BR>Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab
files<BR><BR><BR>Sorry but I don't undersand what to do in point number
1.<BR>How can I do a .tfw file? How does it look like?<BR><BR>and respect to
point 3: how do you know which is the ellps
parameter?<BR><BR>Thanks<BR><BR>Jose Luis<BR><BR>Brent Fraser
<BFRASER@GEOANALYTIC.COM>wrote:<BR>Jose Luis,<BR><BR>Three
possibilities:<BR><BR>1. The tiff might be a plain tiff, not a GeoTiff (with
registration info<BR>attached as a TIFF tag). Make a .tfw georeferencing
"world" file for i t<BR>using the information in the TAB file<BR><BR>2. You
may have your false_easting and false_northing values swapped in
the<BR>PROJECTION object of your map file. Double check with the
CoordSys<BR>statement in t he TAB file.<BR><BR>3. No ellipse is gi ven in
the PROJECTION object. Add "ellps=clrk66"<BR><BR><BR>Since your output
projection is the same as your input projection, you could<BR>just remove
the two PROJECTION objects in your map file. You would stillneed<BR>to make
a world file for the tiff file.<BR><BR>Brent Fraser<BR><BR>----- Original
Message -----<BR>From: Jose Luis Gonzalez<BR>To:
MAPSERVER-USERS@LISTS.UMN.EDU<BR>Sent: Monday, January 31, 2005 8:19
AM<BR>Subject: [UMN_MAPSERVER-USERS] .map and .tab files<BR><BR><BR>Hi
everyone<BR><BR>I can not manage to draw a raster I have.<BR>This raster is
a .tiff file that has associated this .tab file:<BR><BR>!table<BR>!version
300<BR>!charset WindowsLatin2<BR>Definition T able<BR>File
"praha.tif"<BR>Type "RASTER"<BR>(3445375,5 560000) (0,0) Label "Pt
1",<BR>(3474000,5560000) (4507,0) Label "Pt 2",<BR>(3474000,5539250)
(4507,3266) Label "Pt 3"<BR>CoordSys Earth Projection 8, 1001, "m", 15, 0,
1, 3500000, 0<BR>Units "m"<BR>RasterStyle 7 0<BR><BR>When I put this data to
the .map file I write it as:<BR><BR>MAP<BR>NAME praha<BR>STATUS
ON<BR>IMAGETYPE PNG<BR>SIZE 800
500<BR>SHAPEPATH<BR>"/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8"<BR>EXTENT
3445375 5539 250 3474000 5560000<BR>UNITS METERS<BR>PROJECTION "pro j=tmerc"
"lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000"<BR>END<BR>WEB<BR>IMAGEPATH
"/opt/SUNappserver<BR>/domains/domain1/applications/j2ee-modules/test8/"<BR>IMAGEURL
"/test8/"<BR>END<BR>LAYER<BR>NAME "Nighttime lights"<BR>TYPE
RASTER<BR>STATUS
ON<BR>DATA<BR>"/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif<BR>"<BR>PROJECTION
"proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0"
"y_0=3500000"<BR>END<BR>END<BR>END<BR>Am I doing it correctly?<BR>Am I
missin g anything?<BR>Thank you<BR>Jose Luis<BR></BLOCKQUOTE>
<P>
<HR SIZE=1>
<BR>
<TABLE>
<TBODY>
<TR>
<TD><A
href="http://es.rd.yahoo.com/mail_es/tagline/mail/image/*http://es.mail.yahoo.com"><IMG
height=80 alt="Nuevo Correo Yahoo!"
src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/emb25.gif" width=230
align=left border=0></A></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>