Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
removed bloody
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89

Is there any way, for instance, to use the Python console in order to calculate distance matrices for each and every network based on the common denominator Network and save all maximum values to a csvCSV file afterwards?

Yet nothing is happening so far after typing it into the console. I am but a bloody beginner in the usage of the Python console so surely I made a mistake. What next?

Why does Python look for a csvCSV file at the very beginning instead of calculating first and writing the results in a file of this sort second?

Is there any way, for instance, to use the Python console in order to calculate distance matrices for each and every network based on the common denominator Network and save all maximum values to a csv file afterwards?

Yet nothing is happening so far after typing it into the console. I am but a bloody beginner in the usage of the Python console so surely I made a mistake. What next?

Why does Python look for a csv file at the very beginning instead of calculating first and writing the results in a file of this sort second?

Is there any way, for instance, to use the Python console in order to calculate distance matrices for each and every network based on the common denominator Network and save all maximum values to a CSV file afterwards?

Yet nothing is happening so far after typing it into the console. I am but a beginner in the usage of the Python console so surely I made a mistake. What next?

Why does Python look for a CSV file at the very beginning instead of calculating first and writing the results in a file of this sort second?

added 71 characters in body
Source Link
T. K.
  • 291
  • 4
  • 12

The error message did not occur on another (Linux) computer.


The error message did not occur on another (Linux) computer.

added 1227 characters in body
Source Link
T. K.
  • 291
  • 4
  • 12

Joseph's script works. However, the error message remains the same for the file I'm trying to work with. Can anyone tell me what the log message might point to?

2016-09-23T16:22:45 2   Uncaught error while executing algorithm
            Traceback (most recent call last):
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
                self.processAlgorithm(progress)
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\algs\qgis\PointDistance.py", line 89, in processAlgorithm
                self.writer = outputFile.getTableWriter([])
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\core\outputs.py", line 245, in getTableWriter
                return TableWriter(self.value, self.encoding, fields)
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\tools\vector.py", line 668, in __init__
                with open(self.fileName, 'wb') as csvFile:
            IOError: [Errno 2] No such file or directory: 'C:/Users/klinge/GIS/Split/Ergebnisse/Ausgangsdaten_Vorhaben__ZKN060503.csv'
            
2016-09-23T16:22:45 1   There were errors executing the algorithm.

Joseph's script works. However, the error message remains the same for the file I'm trying to work with. Can anyone tell me what the log message might point to?

2016-09-23T16:22:45 2   Uncaught error while executing algorithm
            Traceback (most recent call last):
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
                self.processAlgorithm(progress)
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\algs\qgis\PointDistance.py", line 89, in processAlgorithm
                self.writer = outputFile.getTableWriter([])
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\core\outputs.py", line 245, in getTableWriter
                return TableWriter(self.value, self.encoding, fields)
              File "C:/PROGRA~1/QGIS2~1.14/apps/qgis-ltr/./python/plugins\processing\tools\vector.py", line 668, in __init__
                with open(self.fileName, 'wb') as csvFile:
            IOError: [Errno 2] No such file or directory: 'C:/Users/klinge/GIS/Split/Ergebnisse/Ausgangsdaten_Vorhaben__ZKN060503.csv'
            
2016-09-23T16:22:45 1   There were errors executing the algorithm.
added 769 characters in body
Source Link
T. K.
  • 291
  • 4
  • 12
Loading
added 774 characters in body
Source Link
T. K.
  • 291
  • 4
  • 12
Loading
deleted 32 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345
Loading
Source Link
T. K.
  • 291
  • 4
  • 12
Loading