[Cartoweb-users] PHP in mapfile

Yves Bolognini yves.bolognini at camptocamp.com
Tue May 23 10:43:50 EDT 2006

Hi Yves,

PHP mapfiles in CartoWeb are linked to the concept of "auto layers" (see
http://cartoweb.org/doc/cw3.2/xhtml/user.layers.html ).

To do what you want, you will need to rename your mapfile with
extension .map.php instead of .map. 

Yves B.

On mar, 2006-05-23 at 15:46 +0200, Jacolin Yves wrote:
> Hello,
> I would like to create a kind of dynamic mapfile. I mean create a mapfile from 
> a file tree and to add layers from a postgis DB.
> So one script create the mapfile (and the layers.ini and outline.ini files) 
> and another one, create a file that contains LAYER informations from the 
> postgis DB.
> Is it possible to put something like this in the first mapfile :
> <?php
> include (postgisLayer.php);
> ?>
> and then create the mapfile final using makemaps.phpat the end of my script ?
> Y.

More information about the Cartoweb-users mailing list