How to avoide HUGE .map files {Scanned}

Siki Zoltan siki at AGT.BME.HU
Thu Mar 9 15:20:06 PST 2006


Hi,

You can use cpp (c preprocessor) havind #include directives.
The only withdraw you have to escape map file comments using ## or \#

Zoltan

On Thu, 9 Mar 2006, 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
> >
> 



More information about the MapServer-users mailing list