olivierdalang / VectorBender

VectorBender is a QGis plugin
GNU General Public License v3.0
37 stars 15 forks source link

Porting to 3.0 incomplete for POINT and MULTIPOINT features #21

Closed zezzagio closed 5 years ago

zezzagio commented 5 years ago

Bending POINT or MULTIPOINT geometries raises the errors:

\VectorBender\vectorbender.py", line 182, in run newGeom = QgsGeometry.fromPoint( self.transformer.map(p) ) AttributeError: type object 'QgsGeometry' has no attribute 'fromPoint'

or

\VectorBender\vectorbender.py", line 190, in run newGeom = QgsGeometry.fromMultiPoint( newListA ) AttributeError: type object 'QgsGeometry' has no attribute 'fromMultiPoint'

That's because these attributes in QGis 3 API changed theyr names; it should be:

line 182: newGeom = QgsGeometry.fromPointXY( self.transformer.map(p) )

line 190: newGeom = QgsGeometry.fromMultiPointXY( newListA )

Ciao.