.map and .tab files

Jose Luis Gonzalez joseluismapserver at YAHOO.ES
Mon Jan 31 10:52:20 EST 2005


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 <bfraser at GEOANALYTIC.COM> 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 it
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 the TAB file.

3. No ellipse is given 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 still
need 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 Table
File "praha.tif"
Type "RASTER"
(3445375,5560000) (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 5539250 3474000 5560000
UNITS METERS
PROJECTION "proj=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 missing anything?
Thank you
Jose Luis


---------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050131/3513ac33/attachment.html


More information about the mapserver-users mailing list