identation errors and wrong file paths

This commit is contained in:
Maximilian Krambach 2016-03-22 22:01:21 +01:00
parent 2f97ec670c
commit 097b18190c
8 changed files with 18 additions and 11 deletions

View File

@ -93,9 +93,11 @@ class Dissolve(GeoAlgorithm):
if len(errors) != 0:
for error in errors:
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('ValidateGeometry() error: One or '
'more input features have invalid '
'geometry: ') + error.what())
self.tr('ValidateGeometry()'
'error: One or more '
'input features have '
'invalid geometry: ')
+ error.what())
continue
outFeat.setGeometry(tmpInGeom)
first = False
@ -108,9 +110,11 @@ class Dissolve(GeoAlgorithm):
if len(errors) != 0:
for error in errors:
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('ValidateGeometry() error: One or '
'more input features have invalid '
'geometry: ') + error.what())
self.tr('ValidateGeometry()'
'error:One or more input'
'features have invalid '
'geometry: ')
+ error.what())
continue
try:
tmpOutGeom = QgsGeometry(tmpOutGeom.combine(tmpInGeom))
@ -142,9 +146,11 @@ class Dissolve(GeoAlgorithm):
if len(errors) != 0:
for error in errors:
ProcessingLog.addToLog(ProcessingLog.LOG_ERROR,
self.tr('ValidateGeometry() error: One or '
'more input features have invalid '
'geometry: ') + error.what())
self.tr('ValidateGeometry() '
'error: One or more input'
'features have invalid '
'geometry: ')
+ error.what())
if attrDict[unicode(tempItem).strip()] is None:
# keep attributes of first feature

View File

@ -208,7 +208,7 @@ tests:
DISSOLVE_ALL: 'True'
FIELD: None
INPUT:
name: nullGeometryDissolve.gml
name: custom/nullGeometryDissolve.gml
type: vector
results:
OUTPUT:
@ -222,9 +222,10 @@ tests:
DISSOLVE_ALL: 'True'
FIELD: None
INPUT:
name: PolygonDissolveTest.gml
name: custom/PolygonDissolveTest.gml
type: vector
results:
OUTPUT:
type: vector
name: expected/PolygonDissolveTest_output.gml