[Mapserver-dev] include directive for mapfiles

Kralidis,Tom [Burlington] Tom.Kralidis at ec.gc.ca
Fri Oct 29 11:09:33 EDT 2004


Thanks to all for this.

Here's a small example:

header.txt:
<html>
        <head>
                <title>HEADER</title>
        </head>
        <body>

body.txt
	<h1>hi</h1>

footer.txt
        </body>
</html>

mapfilepp.c:
#include "header.txt"
#include "body.txt"
#include "footer.txt"

To run:

$ gcc -ansi -pedantic -E -P mapfilepp.c


> -----Original Message-----
> From: Daniel Morissette [mailto:dmorissette at dmsolutions.ca] 
> Sent: Friday, 29 October, 2004 10:11
> To: Kralidis,Tom [Burlington]
> Cc: mapserver-dev at lists.gis.umn.edu
> Subject: Re: [Mapserver-dev] include directive for mapfiles
> 
> 
> Kralidis,Tom [Burlington] wrote:
> > Paul,
> > 
> > No I haven't.  What is the approach?  And this sounds like 
> making mods 
> > to the source code?  If yes, I was looking for a canned, runtime 
> > solution.
> > 
> 
> This is an FAQ. Google for "mapfile include preprocessor site:umn.edu"
> 
> Daniel
> -- 
> ------------------------------------------------------------
>   Daniel Morissette               dmorissette at dmsolutions.ca
>   DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
> 




More information about the mapserver-dev mailing list