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

Daniel Morissette morissette at dmsolutions.ca
Mon Dec 8 07:25:25 PST 2003


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 at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the MapServer-users mailing list