pvinton / QGIS-EncodedPolylineExporter-plugin

QGIS Plugins
1 stars 1 forks source link

Error running the first analysis #1

Closed pcav closed 10 years ago

pcav commented 10 years ago

Traceback (most recent call last): File "/home/paolo/qgis_test/python/plugins/encodedPolyline/encodedpolylinedialog.py", line 69, in run message = encodedPolyline_export_to_csv(self.iface, sourceLayer, outputFilename, outputFieldPrefix, delimiter, lineterminator) File "/home/paolo/qgis_test/python/plugins/encodedPolyline/encodedpolyline.py", line 168, in encodedPolyline_export_to_csv attribute_writer.writerow(row) NameError: global name 'attribute_writer' is not defined

pcav commented 10 years ago

This happens with polylines. With polygons the command returns a success message.

pcav commented 10 years ago

Please note that the file is produced even in the first case.

therealtakeshi commented 10 years ago

We'll have to look into what's causing this. Thanks for letting us know.

pvinton commented 10 years ago

Originally we only added support to export polygons, but we will add support for exporting polylines too.

pcav commented 10 years ago

Thanks. Layer types not supported should not be listed in the dropdown.

pvinton commented 10 years ago

Two changes in the most recent update that speak to this issue: 1) Added support for polyline and multipolyline layer types 2) Removed all unsupported layer types from the dropdown