("landuse", "residential", "landuse", "residential-boundary"),\r
("landuse", "grass", "landuse", "grass"),\r
("landuse", "cemetery", "landuse", "grass"),\r
+ ("landuse", "recreation_ground", "landuse", "meadow"),\r
+ ("leisure", "golf_course", "leisure", "golf_course"),\r
("landuse", "greenfield", "landuse", "grass"),\r
("landuse", "orchard", "landuse", "meadow"),\r
("landuse", "meadow", "landuse", "meadow"),\r
("natural", "grassland", "landuse", "meadow"),\r
- ("landuse", "recreation_ground", "landuse", "meadow"),\r
- ("leisure", "golf_course", "leisure", "golf_course"),\r
("barrier", "hedge", "natural", "heath"),\r
("landuse", "vineyard", "landuse", "meadow"),\r
("natural", "bare_rock", "natural", "bare_rock"),\r
(137,137,107)\r
]\r
)\r
-]
\ No newline at end of file
+]\r
# First, we walk through all layers and blend them on top of each other, in order\r
mstr_msg("photogen", "Merging layers")\r
\r
+ # Note if we added building shadows\r
+ bldg_shadow_added = False\r
+\r
# Shadow merging\r
bldg_shadow = Image.new("RGBA", (self._imgsize, self._imgsize))\r
if mstr_shadow_enabled == True:\r
# Merge the building layers\r
bldg_final = Image.new("RGBA", (self._imgsize, self._imgsize))\r
bldg_final.alpha_composite(bldg_details)\r
- bldg_final.alpha_composite(bldg_shadow)\r
+ #bldg_final.alpha_composite(bldg_shadow)\r
bldg_final.alpha_composite(tree_main)\r
bldg_final.alpha_composite(bldg_main)\r
\r
if os.path.isfile(root_filename + l[0] + "-" + l[1] + "_layer.png"):\r
# Need to divert in case we have shadows\r
if mstr_shadow_enabled == True:\r
+\r
+ # Make sure building shadows appear below forests\r
+ shdc = False\r
+ for s in mstr_shadow_casters:\r
+ if s[0] == l[0] and s[1] == l[1]:\r
+ shdc = True\r
+ break\r
+ if shdc == True:\r
+ if bldg_shadow_added == False:\r
+ self._tile.alpha_composite(bldg_shadow)\r
+ bldg_shadow_added = True\r
+\r
if os.path.isfile(root_filename + l[0] + "-" + l[1] + "_layer_shadow.png"):\r
if l[0] != "building":\r
sn = root_filename + l[0] + "-" + l[1] + "_layer_shadow.png"\r
if abs(numbers[1]) >= 10 and numbers[0] <= 99: fstr = fstr + "0" + str(numbers[1])\r
if abs(numbers[1]) >= 100 : fstr = fstr + str(numbers[1])\r
\r
- return fstr
\ No newline at end of file
+ return fstr\r