Opened 15 years ago
Closed 15 years ago
#2904 closed defect (duplicate)
setConnectionType() method in php mapscript is not enable
Reported by: | nsavard | Owned by: | mapserverbugs |
---|---|---|---|
Priority: | normal | Milestone: | 5.4 release |
Component: | MapScript-PHP | Version: | unspecified |
Severity: | normal | Keywords: | connectiontype setconnectiontype wms php mapscript |
Cc: |
Description
The problem was reported on the mapserver-dev mailing list by Alexandre Dube.
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.
There is a ticket related to this. See 2735.