Browse Source

fix isochrones_join

feature/processing_qgs2
Norwin Roosen 4 months ago
parent
commit
fbf4328650
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      osmtools_processing/isochrones_join.py

+ 4
- 5
osmtools_processing/isochrones_join.py View File

@@ -40,11 +40,7 @@ from qgis.core import (
40 40
 
41 41
 from processing import features, runalg
42 42
 from processing.core.GeoAlgorithm import GeoAlgorithm
43
-from processing.core.parameters import (
44
-    ParameterVector,
45
-    ParameterString,
46
-    ParameterBoolean
47
-)
43
+from processing.core.parameters import ParameterVector, ParameterString
48 44
 from processing.core.outputs import OutputVector
49 45
 from processing.tools.vector import VectorWriter
50 46
 from processing.tools.dataobjects import getObjectFromUri, getTempFilename
@@ -150,5 +146,8 @@ class IsochronesJoinGeoAlg(GeoAlgorithm):
150 146
             processedFeatureCount += 1
151 147
             progress.setPercentage(int(processedFeatureCount * totalFeatureCount))
152 148
 
149
+        # load layer if its filebased
150
+        if not output.layer:
151
+            output.layer = getObjectFromUri(output.value)
153 152
 
154 153
         _stylePoly(output.layer, metric) # apply style to new layer

Loading…
Cancel
Save