Skip to content
Permalink
Browse files

make Clip tool work with SpatiaLite layers (fix #4571)

  • Loading branch information
alexbruy committed May 23, 2012
1 parent 53cd1d4 commit 7200ea23f1ac260046ac84ac2466cc6819f46f57
Showing with 5 additions and 2 deletions.
  1. +5 −2 python/plugins/fTools/tools/doGeoprocessing.py
@@ -1351,15 +1351,18 @@ def clip( self ):
else:
crs_match = crsA == crsB
fields = vproviderA.fields()
writer = QgsVectorFileWriter( self.myName, self.myEncoding,
fields, vproviderA.geometryType(), vproviderA.crs() )
writer = QgsVectorFileWriter( self.myName, self.myEncoding, fields,
vproviderA.geometryType(), vproviderA.crs() )
if writer.hasError():
return GEOS_EXCEPT, FEATURE_EXCEPT, crs_match, writer.errorMessage()
inFeatA = QgsFeature()
inFeatB = QgsFeature()
outFeat = QgsFeature()
index = ftools_utils.createIndex( vproviderB )
vproviderA.rewind()
vproviderA.select( allAttrsA )
vproviderB.rewind()
vproviderB.select( allAttrsB )
nElement = 0
# there is selection in input layer
if self.mySelectionA:

0 comments on commit 7200ea2

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