I am trying to reduce the file size of the shapefile by simplifying geometry in QGiS on OS X.
But I get the following error...
An error has occured while executing Python code:
Traceback (most recent call last):
File "/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools/doSimplify.py", line 255, in run
self.runSimplify()
File "/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools/doSimplify.py", line 280, in runSimplify
shapeFileWriter = QgsVectorFileWriter( self.outputFileName, self.outputEncoding, shapeFields, wkbType, crs )
TypeError: arguments did not match any overloaded call:
QgsVectorFileWriter(QString, QString, dict-of-int-QgsField, QGis.WkbType, QgsCoordinateReferenceSystem, QString driverName="ESRI Shapefile", QStringList datasourceOptions=QStringList(), QStringList layerOptions=QStringList(), QString newFilename=None): argument 2 has unexpected type 'NoneType'
QgsVectorFileWriter(QgsVectorFileWriter): argument 1 has unexpected type 'QString'
Python version:
2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]
QGIS version:
1.8.0-Lisboa Lisboa,
Python path: ['/Applications/QGIS.app/Contents/MacOS/../Resources/python', '/Users/admin/.qgis//python', '/Users/admin/.qgis//python/plugins', '/Applications/QGIS.app/Contents/MacOS/../Resources/python/plugins', '/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.7', '/Library/Python/2.7/site-packages/numpy-override', '/Library/Frameworks/GDAL.framework/Versions/1.9/Python/2.7/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages', '/Applications/QGIS.app/Contents/Resources/python/plugins/fTools/tools']
Any idea what the issue could be ?
Gaurav

