<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=5DD2E75F03DF29CF75<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 include 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 it<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 given 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,5560000) (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 "proj=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 missing anything?<BR>Thank you<BR>Jose Luis<BR></BLOCKQUOTE><p>
<hr size=1><br><table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail/image/*http://es.mail.yahoo.com"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/emb25.gif" height=80 width=230 alt="Nuevo Correo Yahoo!" border=0 align="left"></a></td></tr></table>