[mapserver-dev] setConnectionType(MS_WMS) doesn't work

Alexandre Dube adube at mapgears.com
Fri Feb 20 13:35:46 EST 2009


Hi devs,

  I just installed mapserver 5.4.0-beta1.  In mapscript, I'm now not 
unable to use oLayer->set("connectiontype", MS_WMS).  I get an error 
saying "use setConnectionType()" instead.

  That's what I did, but it doesn't work with MS_WMS.  My collegue 
Julien looked deeper in the code and found out in maplayer.c, in the 
msInitializeVirtualTable, when we use MS_WMS it returns MS_FAILURE.

  So I guess it's no longer possible to set connectiontype to wms in 
mapscript.  Is there a new way of doing this ?

  Also, why would a normal mapfile still accept the wms CONNECTIONTYPE 
?  I tried to save my map object as a mapfile and only added 
CONNECTIONTYPE wms and it worked.

  Any hint ?

-- 
Alexandre Dubé
Mapgears
www.mapgears.com



More information about the mapserver-dev mailing list