abhijitgujar86 / QGIS-Layer-arranger

Automatically groups all the open layers into point, line, polygon for better visualization
0 stars 0 forks source link

Plugin stops arranging layers when there are rasters or OpenLayers loaded #4

Open amsantac opened 8 years ago

amsantac commented 8 years ago

Nice plugin. Great idea. Thanks for your work. I found the following issue:

The plugin stops arranging layers when there are rasters or OpenLayers loaded. See below. Could this be fixed?

2016-04-21T14:00:18 1 Traceback (most recent call last): File "C:/Users/Guest/.qgis2/python/plugins\Layer_arranger\layer_arranger.py", line 196, in run if layer.geometryType() == QGis.Point: AttributeError: 'QgsRasterLayer' object has no attribute 'geometryType'

2016-04-21T14:01:08 1 Traceback (most recent call last): File "C:/Users/Guest/.qgis2/python/plugins\Layer_arranger\layer_arranger.py", line 196, in run if layer.geometryType() == QGis.Point: AttributeError: 'OpenlayersLayer' object has no attribute 'geometryType'

abhijitgujar86 commented 8 years ago

i looked up for it found this documents will try it and update the plugin . thanks :)

document: https://qgis.org/api/classQGis.html

amsantac commented 8 years ago

Great! Thanks for contributing to QGIS community