[Qgis-user] Unable to open attribute table wfs PyQGIS via proxy

Arjun Dongre adongre at west-inc.com
Thu Mar 4 06:16:05 PST 2021


Hello,
I am building out a workflow for our team to access their data with a wfs
connection in a plugin. I am creating a wfs layer through QgsVectorLayer
and can successfully add it to the map. However when I try to open the
attribute table the entire program freezes.

One caveat is that I am using a proxy to send requests to geoserver over an
https connection. One thing I have found I need to do is do a global
replace in the getcapabilities document to point the urls to the proxy
domain and not directly back to geoserver.  I have successfully implemented
this pattern for WMS data.

Another oddity is that if I enable feature count in the TOC, I can then
open the table successfully, however if I change/set a filter and try to
reopen the table the program will freeze as before. So it seems that my
methodology does work.

When I create the layer by hitting geoserver directly I do not have this
issue.

I have installed the nightly build to try and look at any error messages,
but it freezes before anything is written out. I also do not see any issues
in the logs for geoserver or in the IIS based proxy.

Any help or ideas would be greatly appreciated.

Thank you.


-- 
*Arjun Dongre*

Western EcoSystems Technology, Inc.
Environmental & Statistical Consultants
415 W. 17th St. Suite 200
Cheyenne, WY 82001
adongre at west-inc.com
www.west-inc.com

*Follow WEST: *Facebook
<http://www.facebook.com/pages/Western%E2%80%90EcoSystems%E2%80%90Technology%E2%80%90WESTInc/125604770807646>
, Twitter <http://twitter.com/WestEcoSystems>, Linked In
<http://www.linkedin.com/company/1458419>, Join our Mailing list
<http://visitor.r20.constantcontact.com/manage/optin/ea?v=001qrD4A3S5xJ5KgMyelH9jyw%3D%3D>

CONFIDENTIALITY NOTICE:  This message and any accompanying communications
are covered by the Electronic Communications Privacy Act, 18 U.S.C. §§
2510-2521, and contain information that is privileged, confidential or
otherwise protected from disclosure.  If you are not the intended recipient
or an agent responsible for delivering the communication to the intended
recipient, you are hereby notified that you have received this
communication in error.  Dissemination, distribution or copying of this
e-mail or the information herein by anyone other than the intended
recipient, or an employee or agent responsible for delivering the message
to the intended recipient, is prohibited.  If you have received this
communication in error, please notify us immediately by e-mail and delete
the original message.  Thank you.

P Please consider the environment before printing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210304/255891b3/attachment.html>


More information about the Qgis-user mailing list