Skip to content
Permalink
Browse files

fix Densify tool

  • Loading branch information
alexbruy committed Feb 3, 2012
1 parent 3f50017 commit f827095642c646b8915850cebd86771b105bfc12
Showing with 4 additions and 4 deletions.
  1. +4 −4 python/plugins/fTools/tools/doSimplify.py
@@ -385,7 +385,7 @@ def runDensify( self ):
for f in selection:
featGeometry = QgsGeometry( f.geometry() )
attrMap = f.attributeMap()
newGeometry = densifyGeometry( featGeometry, self.tolerance, isPolygon )
newGeometry = densifyGeometry( featGeometry, int( self.tolerance ), isPolygon )

feature = QgsFeature()
feature.setGeometry( newGeometry )
@@ -406,7 +406,7 @@ def runDensify( self ):
while vProvider.nextFeature( f ):
featGeometry = QgsGeometry( f.geometry() )
attrMap = f.attributeMap()
newGeometry = densifyGeometry( featGeometry, self.tolerance, isPolygon )
newGeometry = densifyGeometry( featGeometry, int( self.tolerance ), isPolygon )

feature = QgsFeature()
feature.setGeometry( newGeometry )
@@ -433,7 +433,7 @@ def runDensify( self ):
for f in selection:
featureId = f.id()
featGeometry = QgsGeometry( f.geometry() )
newGeometry = densifyGeometry( featGeometry, self.tolerance, isPolygon )
newGeometry = densifyGeometry( featGeometry, int( self.tolerance ), isPolygon )

self.inputLayer.changeGeometry( featureId, newGeometry )
self.emit( SIGNAL( "featureProcessed()" ) )
@@ -451,7 +451,7 @@ def runDensify( self ):
while vProvider.nextFeature( f ):
featureId = f.id()
featGeometry = QgsGeometry( f.geometry() )
newGeometry = densifyGeometry( featGeometry, self.tolerance, isPolygon )
newGeometry = densifyGeometry( featGeometry, int( self.tolerance ), isPolygon )

self.inputLayer.changeGeometry( featureId, newGeometry )
self.emit( SIGNAL( "featureProcessed()" ) )

0 comments on commit f827095

Please sign in to comment.
You can’t perform that action at this time.