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. 

Regards,
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.

_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to