[Qgis-developer] OpenlayersPlugin QGIS
Enrico Ferreguti
enricofer at gmail.com
Thu Oct 1 05:50:06 PDT 2015
starting by saying that I never experienced problems with Openlayers plugin
behind proxy, anyway I resolved all my proxy issues (user, passwords,
subnet exclusions ...) using Qgis own network manager instead of creating a
new one so you can try to remove the lines from 48 to 51 of
openlayers_layer.py file and replace the row 52:
self.setNetworkAccessManager(self.__manager)
with the following:
self.setNetworkAccessManager(QgsNetworkAccessManager.instance())
I just try and it goes but I don't know if it resolvs your issue.
Regards
Enrico Ferreguti
2015-10-01 12:32 GMT+02:00 Marica Landini <bulma at ferrara.linux.it>:
> Sorry,
> I have this problem with 2.8 and 2.10.1 QGIS version (64bit)
> I have not tried other versions
> and I use Win7.
>
> I really appreciate any help you can provide.
> Marica
>
>
> On Thu, Oct 1, 2015 at 12:24 PM, Marica Landini <bulma at ferrara.linux.it>
> wrote:
>
>> Hi,
>> I need to use OpenlayersPlugin QGIS behind proxy network.
>> But I need to use defaultproxy settings configuration.
>>
>> QGIS works fine with this defaultproxy settings
>> (also connection to wms/etc...
>> reading plugin list and download it).
>>
>> But (with the defaultproxy settings) I can not work with OpenlayersPlugin
>> QGIS
>> that return:
>> TypeError: unable to convert a QVariant of type 10 to a QMetaType of type
>> 2
>>
>> I can instead use this plugin with http proxy and setting manually the
>> configuration (Settings->Options->Network)
>>
>> I have tryed to modify OpenlayersPlugin tool_network.py
>> commenting setHostName/setPort/setUser/setPassword
>> and using
>>
>> QNetworkProxy.setApplicationProxy(QNetworkProxy(QNetworkProxy.DefaultProxy))
>> obvious I do not get TypeError,
>> but the plugin not work properly (e.g. I do not get OSM layer).
>>
>> How can I resolve this problem?
>> There is another plugin that works with default (machine) proxy settings?
>> (apologies for my english)...
>>
>> Cheers,
>> Marica
>>
>> --
>> Ti prego di cercare di non inviarmi files .doc, .xls, .ppt, .dwg
>> Preferisco formati liberi.
>> Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
>> I prefer free formats.
>> http://it.wikipedia.org/wiki/Formato_aperto
>> http://en.wikipedia.org/wiki/Open_format
>>
>> Marica Landini
>>
>
>
>
> --
> Ti prego di cercare di non inviarmi files .doc, .xls, .ppt, .dwg
> Preferisco formati liberi.
> Please try to avoid to send me .doc, .xls, .ppt, .dwg files.
> I prefer free formats.
> http://it.wikipedia.org/wiki/Formato_aperto
> http://en.wikipedia.org/wiki/Open_format
>
> Marica Landini
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151001/bb109a86/attachment.html>
More information about the Qgis-developer
mailing list