[Mapserver-users] problem with Layer on-fly with MapServer 4

Daniel Morissette morissette@dmsolutions.ca
Mon, 08 Dec 2003 10:25:25 -0500


Andrés Collao wrote:
> thank you, right now, i know the problem
> 
> the mapfile don´t have de following porperties:
> color
> connectiontype
> size
> (these are the properties that I could prove)
> 
> when i try use STYLE object this don't work , why? i don't know, but 
> reading the /tmp/test.map i see I could observe that the properties for 
> color, size were not written this also happen to CONNECTIONTYPE, when 
> trying to form it dynamically, simply do not make
> 

About the POSTGIS problem, your code contained the line:

   $layer_tmp->set('connectiontype',POSTGIS);

The constant for connection type POSTGIS is MS_POSTGIS and not POSTGIS.

Daniel
-- 
------------------------------------------------------------
  Daniel Morissette               morissette@dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users