gvellut / FreehandRasterGeoreferencer

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

0.8.3: AttributeError: 'FreehandRasterGeoreferencerLayer' object has no attribute '_extent' #60

Open mmokrejs opened 1 year ago

mmokrejs commented 1 year ago

Hi, I just opened a new empty project with WGS84 (EPSG:4326) and after clicking OK to "Project properties - CRS" I got the following:

An error has occurred while executing Python code: 

AttributeError: 'FreehandRasterGeoreferencerLayer' object has no attribute '_extent' 
Traceback (most recent call last):
  File "/home/foo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer/freehandrastergeoreferencer_layer.py", line 146, in resetTransformParametersToNewCrs
    self.reprojectTransformParameters(oldCrs, newCrs)
  File "/home/foo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer/freehandrastergeoreferencer_layer.py", line 129, in reprojectTransformParameters
    newExtent = transform.transform(self.extent())
  File "/home/foo/.local/share/QGIS/QGIS3/profiles/default/python/plugins/FreehandRasterGeoreferencer/freehandrastergeoreferencer_layer.py", line 452, in extent
    if self._extent:
AttributeError: 'FreehandRasterGeoreferencerLayer' object has no attribute '_extent'

Python version: 3.9.15 (main, Nov 15 2022, 00:53:10) [GCC 12.2.1 20221008] 
QGIS version: 3.28.1-Firenze Firenze, exported