Open ninsbl opened 5 years ago
Do you think a QgsMessageBar is enough to inform the user about this corner case?
Do you think a QgsMessageBar is enough to inform the user about this corner case? Yes, that would be absolut sufficient. However, on a second thought, the reason for the error message can also be that mapcanvas settings got messed up when I tried to replicate #8 and the process exited premature. Maybe an improved atexit procedure would be needed in the long run...
I'm getting the same NoneType error and my canvas isn't mostly black.
Same error. In my case i converted was changing crs from what the layer was created in to WGS 84 to send to garmin. Created the layer in wgs 84 solved in my case.
Maybe a corner case, but for a mainly black map canvas the following error pops up:
Traceback (most recent call last): File "C:/Users/stefan.blumentrath/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\GarminCustomMap\GarminCustomMap.py", line 551, in run if t_band_1.min() == 255 and t_band_2.min() == 255 and t_band_3.min() == 255 : AttributeError: 'NoneType' object has no attribute 'min'