gvellut / FreehandRasterGeoreferencer

QGIS plugin for the interactive georeferencing of rasters
GNU General Public License v2.0
50 stars 13 forks source link

AttributeError: 'NoneType' object has no attribute 'center' #32

Closed bkmeneguello closed 3 years ago

bkmeneguello commented 4 years ago

The error happens with the "Georeference raster with 2 points", when I click the first point.

I have two layers, the top most is a shapefile and the botton is a raster image imported with the plugin.

Traceback (most recent call last):
  File "C:/Users/bruno/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\FreehandRasterGeoreferencer\freehandrastergeoreferencer_maptools.py", line 636, in canvasPressEvent
    self.originalCenter = self.layer.center
AttributeError: 'NoneType' object has no attribute 'center'

Amazing plugin, by the way.

bkmeneguello commented 4 years ago

If the raster layer is the top most it works (most of the time - I saw the error once after change the layer order)

gvellut commented 4 years ago

Thank you.

I will have a look.