planetfederal / qgis-geogiglight-plugin

GNU General Public License v2.0
19 stars 9 forks source link

python error when examining modified geometries in "comparison view" #66

Closed gioman closed 8 years ago

gioman commented 8 years ago

When clicking the new button "view detail" (using the latest code revision).

Traceback (most recent call last):
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\diffviewerdialog.py", line 143, in 
    btn.clicked.connect(lambda: self.viewGeometryChanges(qgsgeom1, qgsgeom2))
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\diffviewerdialog.py", line 160, in viewGeometryChanges
    dlg = GeometryDiffViewerDialog([g1, g2], QgsCoordinateReferenceSystem("EPSG:4326")) #TODO set CRS correctly
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\geometrydiffviewerdialog.py", line 49, in __init__
    self.initGui()
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\geometrydiffviewerdialog.py", line 69, in initGui
    execute(self.createLayers)
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\executor.py", line 69, in execute
    return func()
  File "C:/Users/qgis/.qgis2/python/plugins\geogig\gui\dialogs\geometrydiffviewerdialog.py", line 86, in createLayers
    text = geom.exportToWkt()
AttributeError: 'NoneType' object has no attribute 'exportToWkt'
volaya commented 8 years ago

Not able to reproduce. Any additional info about how the feature has been modified and the geometry type? Or better if you can provide a repo in which this can be reproduced

gioman commented 8 years ago

@volaya Updated to latest code revision and still get it. Attached the repository witht layer/version causing the issue. Load "gp_poli" the in history examine changes introduced by version "poli_third" (the change was modifying and existing polygon feature).

repos3.tar.gz

gioman commented 8 years ago

Fix confirmed.