Skip to content

Commit

Permalink
remove underscore from types, reorder parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
juleshaas committed Mar 25, 2024
1 parent 0208f8f commit 4d688f6
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions grass-gis-addons/m.import.rvr/m.import.rvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# % required: yes
# % multiple: yes
# % label: Type of processing for which the data should be imported
# % options: buildings_analysis,green_roofs,trees_analysis
# % options: buildings analysis,green roofs,trees analysis
# % guisection: General input
# %end

Expand All @@ -44,15 +44,6 @@
# % guisection: General input
# %end

# %option G_OPT_F_INPUT
# % key: reference_buildings_file
# % required: no
# % multiple: no
# % label: Vector file (e.g. GPKG or Shapefile format) of the buildings reference data
# % description: Needed for the change detection after the buildings analysis
# % guisection: General input
# %end

# %option G_OPT_M_DIR
# % key: dsm_dir
# % multiple: no
Expand Down Expand Up @@ -107,6 +98,33 @@
# % guisection: General input
# %end

# %option G_OPT_F_INPUT
# % key: reference_buildings_file
# % required: no
# % multiple: no
# % label: Vector file (e.g. GPKG or Shapefile format) of the buildings reference data
# % description: Needed for the change detection after the buildings analysis and for trees analysis
# % guisection: General input
# %end

# %option G_OPT_M_DIR
# % key: dop_dir
# % required: no
# % multiple: no
# % label: Directory where the digital orthophots (DOPs) are stored as GeoTiffs
# % description: Required for the processing of buildings analysis and green roofs detection
# % guisection: Input buildings analysis
# %end

# %option G_OPT_F_INPUT
# % key: dop_tindex
# % required: no
# % multiple: no
# % label: Name of the DOP tindex which should be used or created (optional)
# % description: If this is set the tindex needs a column <location> with the absolute path to the DOP files
# % guisection: Input buildings analysis
# %end

# %option G_OPT_F_INPUT
# % key: fnk_file
# % required: no
Expand Down Expand Up @@ -143,24 +161,6 @@
# % guisection: Input buildings analysis
# %end

# %option G_OPT_M_DIR
# % key: dop_dir
# % required: no
# % multiple: no
# % label: Directory where the digital orthophots (DOPs) are stored as GeoTiffs
# % description: Required for the processing of buildings analysis and green roofs detection
# % guisection: Input buildings analysis
# %end

# %option G_OPT_F_INPUT
# % key: dop_tindex
# % required: no
# % multiple: no
# % label: Name of the DOP tindex which should be used or created (optional)
# % description: If this is set the tindex needs a column <location> with the absolute path to the DOP files
# % guisection: Input buildings analysis
# %end

# %option G_OPT_M_DIR
# % key: top_dir
# % required: no
Expand Down Expand Up @@ -233,7 +233,7 @@
# values: (resolution, purpose, required, needed input information, import
# or computation type)
needed_datasets = {
"buildings_analysis": {
"buildings analysis": {
# vector
"fnk": (None, "output", True, "fnk_file,fnk_column", "vector"),
"reference_buildings": (
Expand All @@ -250,7 +250,7 @@
"dtm": ([0.5], "ndsm", False, "dtm_file", "rasterORxyz"),
"ndsm": ([0.5], "output", True, "", "ndsm"),
},
"green_roofs": {
"green roofs": {
# vector
"fnk": (None, "output", False, "fnk_file,fnk_column", "vector"),
"trees": (None, "output", False, "tree_file", "vector"),
Expand All @@ -268,7 +268,7 @@
"dtm": ([0.5], "ndsm", False, "dtm_file", "rasterORxyz"),
"ndsm": ([0.5], "output", True, "", "ndsm"),
},
"trees_analysis": {
"trees analysis": {
# vector
"reference_buildings": (
None,
Expand Down Expand Up @@ -589,8 +589,8 @@ def check_data(ptype, data, val):
"""Checks if all required data are set and the data files or folder
exists.
Args:
ptype (str): processing type (buildings_analysis, green_roofs or
trees_analysis)
ptype (str): processing type (buildings analysis, green roofs or
trees analysis)
data (str): Name or type of the data
val (tuple): Tuple with values of the data: (resolution, purpose,
required, needed input information, import
Expand Down

0 comments on commit 4d688f6

Please sign in to comment.