[Mapserver-users] Large Map Files

C F gis_consultant at hotmail.com
Tue Feb 11 15:32:39 EST 2003


I agree that functionality is definitely needed.  Don't flame me (I'm not 
trying to start another XML thread), but I'd just like to point out that 
this functionality is readily available in XSLT :)


>From: Paul Ramsey <pramsey at refractions.net>
>To: Jan Hartmann <jhart at frw.uva.nl>
>CC: mapserver-users at lists.gis.umn.edu
>Subject: Re: [Mapserver-users] Large Map Files
>Date: Tue, 11 Feb 2003 11:02:33 -0800
>
>I have been thinking that an extremely powerful extension to the .map file 
>would be an "INCLUDE" directive, which reads a map file fragment into 
>another map file.  A quick-and-dirty map service could then be assembled 
>with:
>
>MAP
>   INCLUDE standard-headers.map
>   INCLUDE standard-basemap-layers.map
>   LAYER
>     NAME myspeciallayer
>     DATA blah
>     TYPE polygon
>   END
>END
>
>The FME does this in its mapping files, for example. The first stage of 
>processing is to replace all INCLUDE lines with their referenced content. 
>It recursively does this up to a max number of loops.
>
>For people maintaining alot of different map services, it could be a real 
>boon. (Your parcel postgis database is now on a new server? Change the 
>*one* parcel layer definition, and all the maps which reference it are now 
>up-to-date.)
>
>P.
>
>Jan Hartmann wrote:
>>Just my personal view, but isn't this problem of too many classes (or 
>>layers) perhaps caused by using a MapFile in two different ways: as a 
>>generator of a single layered map, and as a repository of all available 
>>map layers? I can hardly imagine a single map with more than fifty classes 
>>or one hundred layers. What people seem to do is putting every GIS file 
>>they have in a single MapFile and turning layers on and off as needed. As 
>>every layer needs its own classes, the maximum number of 50 is very soon 
>>reached, even if only a small part of these will be ever used in any 
>>actual map.
>
>--
>       __
>      /
>      | Paul Ramsey
>      | Refractions Research
>      | Email: pramsey at refractions.net
>      | Phone: (250) 885-0632
>      \_
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus




More information about the mapserver-users mailing list