[MAPSERVER-USERS] Handling TIF Raster files

Frank Warmerdam warmerdam at pobox.com
Tue Sep 2 05:49:39 PDT 2008


ramses2k wrote:
> Dear List,
> 
> I got Raster files of a local authority which I want to use and show in 
> Mapserver. The files got TIF format (up to 10MB is that too big?), and 3 
> description files - *.tfw , *.tab, *.eck  -  are included (listed 
> below). Has anyone got experience how to set up the mapfile properly?

Clemens,

The .tab file includes a projection definition that in WKT looks like:

PROJCS["unnamed",
     GEOGCS["unnamed",
         DATUM["DHDN_Potsdam_Rauenberg",
             SPHEROID["Bessel 1841",6377397.155,299.1528128],
             TOWGS84[582,105,414,1.04,0.35,-3.08,8.3]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433]],
     PROJECTION["Transverse_Mercator"],
     PARAMETER["latitude_of_origin",0],
     PARAMETER["central_meridian",9],
     PARAMETER["scale_factor",1],
     PARAMETER["false_easting",3500000],
     PARAMETER["false_northing",0],
     UNIT["Meter",1]]

In your MAP file you would use a clause like this within your LAYER.

PROJECTION
   "+proj=tmerc +lon_0=9 +x_0=3500000 +ellps=bessel 
+towgs84=582,105,414,1.04,0.35,-3.08,8.3"
END

The .tfw file should be used directly by MapServer to georeference
your image.  The eck file seems to be an alternative to the .tfw file
with georeferencing for the image.  Beyond this I would encourage you
to review the Raster Data HOWTO for more information on raster layers.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the MapServer-users mailing list