Skip to content

Commit

Permalink
Merge pull request #970 from j3r3m1/grid_indic
Browse files Browse the repository at this point in the history
Fix issue #968
  • Loading branch information
j3r3m1 authored May 28, 2024
2 parents 6808207 + 85d9677 commit 4b025dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ class WorkflowDebugTest {
@Disabled
@Test
void testIntegrationFolderInput() {
def input_data = "/media/ebocher/Extreme SSD/bdtopo/bdtopo2/BDTOPO_2-2_TOUSTHEMES_SHP_LAMB93_D035_2018-09-25/BDTOPO/1_DONNEES_LIVRAISON_2018-11-00144/BDT_2-2_SHP_LAMB93_D035-ED182"
def locations = [ "Bordeaux"]
String directory = "/tmp/bdtopo2"
def input_data = "/home/decide/Data/URBIO/Donnees_brutes/BD_TOPO/BDTOPO_3-3_TOUSTHEMES_SHP_LAMB93_D076_2024-03-15"
def locations = ["76005","76020"]
String directory = "/tmp/bdtopo3"
File dirFile = new File(directory)
dirFile.delete()
dirFile.mkdir()
Expand All @@ -157,30 +157,16 @@ class WorkflowDebugTest {
"folder": ["path": directory]],
"parameters" :
["distance" : 0,
rsu_indicators : [
"indicatorUse": ["LCZ", "UTRF", "TEB"]

],
"grid_indicators": [
"x_size" : 100,
"y_size" : 100,
"indicators" :["BUILDING_FRACTION", "BUILDING_HEIGHT", "BUILDING_POP",
"BUILDING_TYPE_FRACTION", "WATER_FRACTION", "VEGETATION_FRACTION",
"ROAD_FRACTION", "IMPERVIOUS_FRACTION",
//"FREE_EXTERNAL_FACADE_DENSITY",
"BUILDING_HEIGHT_WEIGHTED", "BUILDING_SURFACE_DENSITY",
"SEA_LAND_FRACTION", "ASPECT_RATIO",
//"SVF",
"HEIGHT_OF_ROUGHNESS_ELEMENTS", "TERRAIN_ROUGHNESS_CLASS",
"UTRF_AREA_FRACTION", "UTRF_FLOOR_AREA_FRACTION",
"LCZ_PRIMARY", "SPRAWL_AREAS",
"SPRAWL_DISTANCES", "SPRAWL_COOL_DISTANCE"]
"indicators" :["FREE_EXTERNAL_FACADE_DENSITY", "BUILDING_FRACTION"]
//, "lcz_lod":2
]
]
]
//BDTopo.v2(bdTopoParameters)

/*
input_data = "/home/ebocher/Téléchargements/BDTOPO_3-3_TOUSTHEMES_SHP_LAMB93_D033_2023-12-15/BDTOPO/1_DONNEES_LIVRAISON_2023-12-00099"
directory = "/tmp/bdtopo3"
Expand All @@ -189,7 +175,7 @@ class WorkflowDebugTest {
dirFile.mkdir()
bdTopoParameters.input.folder=input_data
bdTopoParameters.output.folder.path=directory
bdTopoParameters.output.folder.path=directory*/
BDTopo.v3(bdTopoParameters)

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ String rasterizeIndicators(JdbcDataSource datasource,
list_indicators_upper.each {
if (it == "BUILDING_FRACTION"
|| it == "BUILDING_SURFACE_DENSITY" ||
it == "ASPECT_RATIO") {
it == "ASPECT_RATIO" || it == "FREE_EXTERNAL_FACADE_DENSITY") {
columnFractionsList.put(priorities.indexOf("building"), "building")
} else if (it == "WATER_FRACTION") {
columnFractionsList.put(priorities.indexOf("water"), "water")
Expand Down

0 comments on commit 4b025dc

Please sign in to comment.