-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
wxGUI: fix WMS, includes changing widget because listtreectrl didn't … #242
Conversation
…behave correctly when selecting layers
Cool, thanks. Would be great if this could go into 7.8.2 |
Will test this weekend. |
The GUI works, but when I add a map, I get:
And the WMS does not show up in the map display... |
The first part is unrelated, the second part doesn't seem to come from GRASS. I was testing it with https://services.nationalmap.gov/arcgis/services/USGSNAIPPlus/MapServer/WMSServer for nc_spm dataset and although I got similar error, the result showed up. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I double-checked and found that I had used an outdated build routine.
I can confirm that it works now (on the command line at least) in nc_basic_spm_grass7
with:
g.region -p raster=elevation
r.in.wms url=https://services.nationalmap.gov/arcgis/services/USGSNAIPPlus/MapServer/WMSServer output=layers layers=1 srs=3358 wms_version=1.1.1 --o
However, in the GUI I get
Traceback (most recent call last):
File "/opt/src/grass_test/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/gthread.py", line 121, in OnDone
event.ondone(event)
File "/opt/src/grass_test/dist.x86_64-pc-linux-
gnu/gui/wxpython/core/ws.py", line 184, in OnRenderDone
(self.layer, event.ret, time.time() - self._startTime))
TypeError
:
%d format: a number is required, not NoneType
And the process gets stuck in Downloading data...
However, there are still some confusing situation:
- Server errors are not handled properly (response is bytestream b'*))
- GRASS should also give warning messages if BBox of the WMS and the current region do not overlapp...
And we should probably add tests for r.in.wms / d.wms?!
But that is another issue (ticket?)...
I made this test in G78 (Fedora 31):
and get
In addition, when closing the window, I get
|
@petrasovaa shall I cherry-pick this for relbr78? |
* wxGUI: fix WMS, includes changing widget because listtreectrl didn't behave correctly when selecting layers * avoid wx warnings about deprecated calls in wms dlg * wms: fix returncode, py3 compatibility, typo
Done! |
* wxGUI: fix WMS, includes changing widget because listtreectrl didn't behave correctly when selecting layers * avoid wx warnings about deprecated calls in wms dlg * wms: fix returncode, py3 compatibility, typo
…behave correctly when selecting layers