Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFS 'filter - use layer/canvas extent' ko #57

Closed
sgrellet opened this issue Feb 5, 2018 · 5 comments
Closed

WFS 'filter - use layer/canvas extent' ko #57

sgrellet opened this issue Feb 5, 2018 · 5 comments
Assignees
Labels
bug Houston, we've a problem!

Comments

@sgrellet
Copy link
Member

sgrellet commented Feb 5, 2018

Connected to https://wfspoc.brgm-rec.fr/geoserver/ows
Just having a WMS layer as a background
'use layer/canvas extent' returns the following stack trace

AttributeError: module 'processing.tools.dataobjects' has no attribute 'getAllLayers'
Traceback (most recent call last):
File "C:/Users/grellets/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\gml_application_schema_toolbox\gui\bbox_widget.py", line 67, in useLayerExtent
layers = dataobjects.getAllLayers()
AttributeError: module 'processing.tools.dataobjects' has no attribute 'getAllLayers'

Version de Python : 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
Version de QGIS : 2.99.0-Master Master, b4be39f98b

@sgrellet sgrellet added the bug Houston, we've a problem! label Feb 5, 2018
@sgrellet sgrellet added this to Bugs in GMLAS toolbox 1.2.0 Feb 5, 2018
@sgrellet
Copy link
Member Author

sgrellet commented Mar 1, 2018

The layer chooser pop-ups properly but it seems we have a pb.
In the GUI the text says 'x min, y min, x max, ymax, ...' but it seems it is filled with X min, X Max, Y min, Y Max (same as when you 'select extent on canvas')
Moreover "-180.0,180.0,-90.0,90.0,EPSG:4326 " is taken from a worldwide WMS backdrop but the WFS query is https://wfspoc.brgm-rec.fr:443/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&bbox=90.0,-180.0,180.0,-90.0,urn:ogc:def:crs:EPSG::4326&typenames=ef:EnvironmentalMonitoringFacility

wheras it should be (minX, min Y, max x, max Y) https://wfspoc.brgm-rec.fr:443/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&bbox=-180,-90,180,90,urn:ogc:def:crs:EPSG::4326&typenames=ef:EnvironmentalMonitoringFacility

@mhugo
Copy link
Collaborator

mhugo commented Mar 9, 2018

Orders of the parameters depend on the projection

@mhugo
Copy link
Collaborator

mhugo commented Apr 12, 2018

Ok, got it. The last commit 4060d9d should fix the problem

@mhugo mhugo closed this as completed Apr 12, 2018
@sgrellet
Copy link
Member Author

not tested under v.1.2.0-rc3 because of #53

@sgrellet
Copy link
Member Author

fixed under
GMLAS toolbox plugin : v1.2.0-rc4
Python : 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS : 3.0.1-Girona Girona, a86bec25ebw

@sgrellet sgrellet moved this from Bugs to Done in GMLAS toolbox 1.2.0 Apr 13, 2018
mhugo pushed a commit that referenced this issue Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Houston, we've a problem!
Projects
No open projects
Development

No branches or pull requests

2 participants