.map and .tab files
Brent Fraser
bfraser at GEOANALYTIC.COM
Wed Mar 9 07:18:55 PST 2005
Jose Luis,
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,
image1.tif
image1.tfw
image2.tif
image2.tfw
The tfw file is associated with the image file automatically based on the file name.
Brent
----- Original Message -----
From: Jose Luis Gonzalez
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: Wednesday, March 09, 2005 3:59 AM
Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files
Hi Brent and all the rest.
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.
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.
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?
Thank you to all
Jose Luis
P.D. I am using Linux, and Mapserver 4.4.1
Brent Fraser <bfraser at GEOANALYTIC.COM> wrote:
For a world file description, have a look at:
http://lists.umn.edu/cgi-bin/wa?A2=ind0501&L=mapserver-users&P=R31342&I=-3&X=5DD2E75F03 DF29CF75
Sorry about the ellps info (it's not Clark 1866). Your tab file shows 1001
as the datum code. From the MapInfo doc, this indicates a datum of Pulkovo
1942, which uses the the Krassovsky ellipsoid. Your PROJECTION object
should i nclude the Proj4 keyword of "ellps=krass"
Brent
----- Original Message -----
From: Jose Luis Gonzalez
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: Monday, January 31, 2005 8:52 AM
Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files
Sorry but I don't undersand what to do in point number 1.
How can I do a .tfw file? How does it look like?
and respect to point 3: how do you know which is the ellps parameter?
Thanks
Jose Luis
Brent Fraser wrote:
Jose Luis,
Three possibilities:
1. The tiff might be a plain tiff, not a GeoTiff (with registration info
attached as a TIFF tag). Make a .tfw georeferencing "world" file for i t
using the information in the TAB file
2. You may have your false_easting and false_northing values swapped in the
PROJECTION object of your map file. Double check with the CoordSys
statement in t he TAB file.
3. No ellipse is gi ven in the PROJECTION object. Add "ellps=clrk66"
Since your output projection is the same as your input projection, you could
just remove the two PROJECTION objects in your map file. You would stillneed
to make a world file for the tiff file.
Brent Fraser
----- Original Message -----
From: Jose Luis Gonzalez
To: MAPSERVER-USERS at LISTS.UMN.EDU
Sent: Monday, January 31, 2005 8:19 AM
Subject: [UMN_MAPSERVER-USERS] .map and .tab files
Hi everyone
I can not manage to draw a raster I have.
This raster is a .tiff file that has associated this .tab file:
!table
!version 300
!charset WindowsLatin2
Definition T able
File "praha.tif"
Type "RASTER"
(3445375,5 560000) (0,0) Label "Pt 1",
(3474000,5560000) (4507,0) Label "Pt 2",
(3474000,5539250) (4507,3266) Label "Pt 3"
CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0
Units "m"
RasterStyle 7 0
When I put this data to the .map file I write it as:
MAP
NAME praha
STATUS ON
IMAGETYPE PNG
SIZE 800 500
SHAPEPATH
"/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8"
EXTENT 3445375 5539 250 3474000 5560000
UNITS METERS
PROJECTION "pro j=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000"
END
WEB
IMAGEPATH "/opt/SUNappserver
/domains/domain1/applications/j2ee-modules/test8/"
IMAGEURL "/test8/"
END
LAYER
NAME "Nighttime lights"
TYPE RASTER
STATUS ON
DATA
"/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif
"
PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000"
END
END
END
Am I doing it correctly?
Am I missin g anything?
Thank you
Jose Luis
------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050309/bdf61ee3/attachment.htm>
More information about the MapServer-users
mailing list