From 242c3151162e1647365eb66715ab1bcc72f2b6ec Mon Sep 17 00:00:00 2001 From: cfarmer Date: Sat, 12 Mar 2011 15:51:20 +0000 Subject: [PATCH] fixes problem with output type when using multipart to singleparts tool. Thanks to Luiz Motta for the fix. git-svn-id: http://svn.osgeo.org/qgis/trunk@15451 c8812cc2-4d05-0410-92ff-de0c093fc19c --- python/plugins/fTools/tools/doGeometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugins/fTools/tools/doGeometry.py b/python/plugins/fTools/tools/doGeometry.py index 6d748f14cca..c5871b10cc4 100755 --- a/python/plugins/fTools/tools/doGeometry.py +++ b/python/plugins/fTools/tools/doGeometry.py @@ -355,7 +355,7 @@ class geometryThread( QThread ): vprovider.select( allAttrs ) fields = vprovider.fields() writer = QgsVectorFileWriter( self.myName, self.myEncoding, - fields, vprovider.geometryType(), vprovider.crs() ) + fields, vprovider.geometryType()-3, vprovider.crs() ) inFeat = QgsFeature() outFeat = QgsFeature() inGeom = QgsGeometry()