[Qgis-developer] W*S obtain only the server url

Gino Pirelli luipir at gmail.com
Sun Dec 8 01:36:08 PST 2013


+1


On 7 December 2013 17:35, G. Allegri <giohappy at gmail.com> wrote:

> What about using urlparse: http://docs.python.org/2/library/urlparse.html?
>
>
> 2013/12/7 Gino Pirelli <luipir at gmail.com>
>
>> Hi Luca
>>
>> usign QT you can:
>>
>> create QUrl and then query "url" with it's method  queryItemValue
>>
>> probably there's a pure python method... that it's always better reducing
>> QT coupling. If you find a pure python way... please post it.
>>
>> ciao Ginetto
>>
>>
>> On 6 December 2013 10:47, Luca Delucchi <lucadeluge at gmail.com> wrote:
>>
>>> Hi everybody,
>>>
>>> I have a WFS layer and I would like to obtain the server url using
>>> pyqgis.
>>> Now I'm using layer.source(), but it return the entire url with all
>>> the parameters.
>>> Is there a way to abtain only the server url?
>>> When QGIS create the string for the request it append every time
>>> REQUEST parameter for first? Could I split the string using it?
>>>
>>> Thanks
>>>
>>> --
>>> ciao
>>> Luca
>>>
>>> http://gis.cri.fmach.it/delucchi/
>>> www.lucadelu.org
>>> _______________________________________________
>>> Qgis-developer mailing list
>>> Qgis-developer at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>
>>
>> _______________________________________________
>> Qgis-developer mailing list
>> Qgis-developer at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>
>
>
> --
> Giovanni Allegri
> http://about.me/giovanniallegri
> blog: http://blog.spaziogis.it
> GEO+ geomatica in Italia http://bit.ly/GEOplus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20131208/a17e4d3f/attachment.html>


More information about the Qgis-developer mailing list