[mapserver-dev] setConnectionType(MS_WMS) doesn't work
Yewondwossen Assefa
yassefa at dmsolutions.ca
Thu Feb 26 12:15:38 EST 2009
Alexandre,
What type of layer is that? If your layer type is raster, I think the
function would work from what I can see. Maybe try to set
$oLayer->set("type", MS_LAYER_RASTER); before the call?
Best Regards,
Alexandre Dube wrote:
> Hi devs,
>
> Any hint about this issue ?
>
> Alexandre
>
> Alexandre Dube wrote:
>> 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 ?
>>
>
>
--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst
Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/
Phone: (613) 565-5056 (ext 14)
Fax: (613) 565-0925
----------------------------------------------------------------
More information about the mapserver-dev
mailing list