How to avoide HUGE .map files

Bart van den Eijnden (OSGIS) bartvde at XS4ALL.NL
Thu Mar 9 09:40:41 PST 2006


There is no way to include them directly. You will need to use some kind 
of pre-processing like awk or a C preprocessor etc.

Ed, one way to avoid huge MAP files is to create tile-indexes around 
datasets which have a similar structure, but I don't know if that is the 
case with your use case.

Best regards,
Bart

Michael Scharber wrote:

> Ed,
>
> Though I'm not looking for an editor, per se, I would like to know how 
> to reuse chunks of mapfile config (100s of lines) across multiple 
> mapfiles with little or no replication.  Is there a way to "include" 
> mapfile fragments into other mapfiles?
>
> Michael
>
>
> On Thu, 9 Mar 2006, Ed Dowding wrote:
>
>> Does anyone have any advice on how to avoid huge .map files?
>>
>> We have a flash interface to our mapserver app, and we have mapping 
>> for the
>> whole or europe (and much of america) down to building outline level.
>>
>> Our interface makes it possible to scroll the map from country to 
>> country,
>> and zoom in/out, so really all styling has to be in the one file.
>>
>> But...
>>
>> 1) Does it all have to be in that file? Am I right about this?
>>
>> 2) any tips on managing and styling them? I'm currently using jedit 
>> since it
>> has nice code folding. I'm yet to find a GUI that exports .map files 
>> in a
>> format that is immediately usable.
>>
>> 3) any other tips from anyone?
>>
>> Thanks in advance,
>>
>> Ed
>>
>
>


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl



More information about the MapServer-users mailing list