Commit febb25c1 authored by Rick Gruber-Riemer's avatar Rick Gruber-Riemer

* Changing sanity parameter for dense settlement type based on observations

* Changed scala for density to focus on densities < 0.5
parent 9f75e3a7
......@@ -542,7 +542,7 @@ OWBB_PLACE_RADIUS_FACTOR_CITY Number 1. Linear corr
OWBB_PLACE_RADIUS_FACTOR_TOWN Number 1. Ditto for ``place=town``.
OWBB_PLACE_TILE_BORDER_EXTENSION Integer 10000 Extension of the perimeter (tile borders) to read place information from, as
e.g. a city might extend across til border areas.
OWBB_PLACE_SANITY_DENSITY Number 0.2 Make sure that settlement type dense is assigned, if the density of a building
OWBB_PLACE_SANITY_DENSITY Number 0.15 Make sure that settlement type dense is assigned, if the density of a building
zone is larger than a given ratio and the settlement type is rural or
periphery. The density is calculated as the total of
all buildings' floor area (inner rings' areas do also count) divided by the
......
......@@ -104,23 +104,23 @@ def _draw_zones_density(building_zones: List[m.BuildingZone], ax: maxs.Axes) ->
for building_zone in building_zones:
density = building_zone.density # keeping value in order not to calculate the property all the time
colour = 'black'
if density < .1:
if density < .05:
colour = 'lightgrey'
elif density < .2:
elif density < .1:
colour = 'yellow'
elif density < .3:
elif density < .15:
colour = 'orange'
elif density < .4:
elif density < .2:
colour = 'red'
elif density < .5:
elif density < .25:
colour = 'darkred'
elif density < .6:
elif density < .3:
colour = 'lime'
elif density < .7:
elif density < .35:
colour = 'limegreen'
elif density < .8:
elif density < .4:
colour = 'green'
elif density < .9:
elif density < .45:
colour = 'darkgreen'
_add_patch_for_building_zone(building_zone, colour, colour, ax)
......@@ -306,8 +306,9 @@ def draw_zones(buildings: List[bl.Building], building_zones: List[m.BuildingZone
# Density of zones
my_figure = _create_a3_landscape_figure()
my_figure.suptitle("Density (ratio of building floor plan area to total area). Yellow to red up to .5, \
green afterwards")
my_figure.suptitle("Density (ratio of building floor plan area to total area). \
Light grey up to .05, Yellow up to .1, orange up to 0.15, red up to .2, \
dark red up to .25, lime up to .3, green up to .4, dark green up to .45, black afterwards")
ax = my_figure.add_subplot(111)
_draw_zones_density(building_zones, ax)
_set_ax_limits_from_bounds(ax, bounds)
......
......@@ -149,7 +149,7 @@ RECTIFY_90_TOLERANCE = 0.1
BUILDING_FORCE_EUROPEAN_INNER_CITY_STYLE = False
BUILDING_FAKE_AMBIENT_OCCLUSION = True # -- fake AO by darkening facade textures towards the ground, using
BUILDING_FAKE_AMBIENT_OCCLUSION_HEIGHT = 6. # 1 - VALUE * exp(- AGL / HEIGHT )
BUILDING_FAKE_AMBIENT_OCCLUSION_HEIGHT = 6. # 1 - VALUE * exp(- AGL / HEIGHT )
BUILDING_FAKE_AMBIENT_OCCLUSION_VALUE = 0.6
# Parameters which influence the height of buildings if no info from OSM is available.
......@@ -321,7 +321,7 @@ OWBB_PLACE_RADIUS_FACTOR_TOWN = 1.
OWBB_PLACE_TILE_BORDER_EXTENSION = 10000
OWBB_PLACE_SANITY_DENSITY = 0.2
OWBB_PLACE_SANITY_DENSITY = 0.15
# ==================== BUILDING GENERATION ============
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment