Skip to content

Commit

Permalink
Add Warning (cf issue #77)
Browse files Browse the repository at this point in the history
  • Loading branch information
j3r3m1 committed Apr 30, 2024
1 parent 59c7055 commit 90f7076
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/URock/GlobalVariables.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
# If debug is True, keep intermediate tables (within each process) and save
# intermediate tables (such as Röckle zones) as GIS file
DEBUG = True
ONLY_INITIALIZATION = False
ONLY_INITIALIZATION = True
SAVE_ROCKLE_ZONES = False
MAX_ITERATIONS = 500 # Based on QUIC-URB default values (2021)
THRESHOLD_ITERATIONS = 1e-4 # Based on QUIC-URB default values (2021)
Expand Down
1 change: 1 addition & 0 deletions metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ repository=https://github.com/UMEP-dev/UMEP-processing
hasProcessingProvider=yes
# Uncomment the following line and add your changelog:
changelog=
2.0.25: URock Prepare: add a warning (issue #77 in UMEP-Processing)
2.0.24: Response to issue #51
2.0.23: Response to issue #67
2.0.22: URock: Fix endless query (issue #63 in UMEP-Processing)
Expand Down
5 changes: 4 additions & 1 deletion preprocessor/urock_prepare_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ def processAlgorithm(self, parameters, context, feedback):
{'INPUT':tempoBuildinglayer2,'FIELD':'height_median',
'NEW_NAME':buildingHeightField,
'OUTPUT':outputBuildFilepath})["OUTPUT"]


# In case user provide a DSM and a DEM but no building footprint
elif build_dsm:
feedback.pushWarning('You have provided a DSM but no building footprint. Please note that if you want to create a building layer for URock, you need to provide a building footprint in this preprocessing')


# VEGETATION LAYER CREATION
Expand Down

0 comments on commit 90f7076

Please sign in to comment.