mapfile for utm

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Sat Sep 18 08:45:27 EDT 2004


Joerg,

If you are not mixing data with different projects it is safe to get rid
of all the projection blocks in your mapfile. Also set the layer STATUS
DEFAULT to make sure it is always on and try it again.

-Steve W.

joerg p wrote:

> hello,
>
> I try and read but somehwo I don't get it...
> All I want to do is to display a utm geotiff of zone 33, berlin,
> germany. I can open it in Globalmapper, but I can't see it in mapserver.
>
> I would be very happy, if somebody could give me a hint....
>
> Joerg
>
> My short mapfile:
>
> MAP
>
> IMAGETYPE png
> EXTENT 310000.0 580000.0 450000.0 590000.0
> UNITS METERS
> size 800 400
> imagecolor 112 135 148
> DEBUG ON
>
> PROJECTION
>        proj=utm
>        zone=33
>        ellps=WGS84
>        datum=WGS84
>        units=m
>        no_defs
> END
>
> web
>   LOG "C:\ms_tmp\logfile.txt"
>   imagepath "C:\ms_tmp\"
>   imageurl "/ms_tmp/"
>   template "berlinTpl_2.html"
> end
>
> OUTPUTFORMAT
>     NAME "png"
>     MIMETYPE "image/png"
>     DRIVER "GD/PNG"
>     EXTENSION "png"
>     IMAGEMODE PC256
>        TRANSPARENT FALSE
> END
>
> LAYER
>     NAME landsatberlin
>     STATUS ON
>     DATA "data/raster/landsat/p193r023.tif"
>     OFFSITE 0 0 0
>     TYPE RASTER
>        PROJECTION
>        proj=utm
>        zone=33
>        ellps=WGS84
>        datum=WGS84
>        units=m
>        no_defs
>        END
> DEBUG ON
> END
>
> END # Map File
>



More information about the mapserver-users mailing list