[Mapserver-users] Easy mapfile question

Stephen Clark stephen.clark at focus.ca
Thu Jan 22 13:07:29 EST 2004


Jim,

Add another layer  with the Western US raster as you did for the world file.

Set the MINSCALE and MAXSCALE to be available when zooming into the US.



----- Original Message ----- 
From: "Jim Buzbee" <James.P.Buzbee at lmco.com>
To: <mapserver-users at lists.gis.umn.edu>
Sent: Thursday, January 22, 2004 8:41 AM
Subject: [Mapserver-users] Easy mapfile question


>
> I'm working on an application that starts with a whole-world raster
> image.  As the user pans and zooms in different areas, I want more
> detailed raster images to be displayed if they are available.
>
> I currently have a single raster image referenced in my map file and it
> is working properly.  My question : How do I add additional rasters to
> the map file?
>
> For example, say I have a raster map of the western US with extents of
> something like 34N, 114W to 35N, 112W. How do I reference this in my map
> file?  Here's my current map file :
>
> MAP
>    STATUS ON
>    EXTENT -180 -90 180 90
>    UNITS DD
>    SIZE 640 320
>    SHAPEPATH  "/usr/apache2/htdocs/maps/"
>
> WEB
>    TEMPLATE world.html
>    IMAGEPATH "/usr/apache2/htdocs/tmp/"
>    IMAGEURL "/tmp/"
> END
>
>    LAYER
>      NAME world
>      TYPE RASTER
>      DATA world.tif
>      STATUS DEFAULT
>    END
>
> END
>
> Thanks!
>
> Jim Buzbee
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the mapserver-users mailing list