.map and .tab files

Flavio Hendry flavio at TYDAC.CH
Mon Jan 31 11:12:39 EST 2005


jose luis

the tfw file represent the uppre left coords (cneter of pixel) and the
resolution (and rotation params which are not supported as far as I
know). In your case just and ASCII file named as your tiff wiht the
extension tfw:

6.352
0
0
-6.352
3445372
5569997


Mit freundlichem Gruss / Best Regards
Flavio Hendry

----------------------------------------------------------------
TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual
----------------------------------------------------------------
############      Mit freundlichen Gruessen / Kind Regards
############             mailto:flavio at tydac.ch
############         TYDAC AG - http://www.tydac.ch
####    ####        Geographic Information Solutions
####    ####         Luternauweg 12 -- CH-3006 Bern
############   Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860
----------------------------------------------------------------


-----Original Message-----
From: Jose Luis Gonzalez <joseluismapserver at YAHOO.ES>
To: MAPSERVER-USERS at LISTS.UMN.EDU
Date: Mon, 31 Jan 2005 16:52:20 +0100
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 <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/pr
> aha.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
>
>
> ---------------------------------
>
>



More information about the mapserver-users mailing list