# most likely crash.\r
mstr_ortho_layers = [\r
# Z-Order 0\r
- ("boundary", "administrative", "admin_level", ["8", "9", "10", "12"], "landuse", "residential-boundary"),\r
+ #("boundary", "administrative", "admin_level", ["8", "9", "10", "12"], "landuse", "residential-boundary"),\r
# Z-Order 1\r
+ ("landuse", "residential", "landuse", "residential-boundary"),\r
+ ("landuse", "grass", "landuse", "grass"),\r
+ ("landuse", "cemetery", "landuse", "grass"),\r
+ ("landuse", "greenfield", "landuse", "grass"),\r
("landuse", "orchard", "landuse", "meadow"),\r
("landuse", "meadow", "landuse", "meadow"),\r
("natural", "grassland", "landuse", "meadow"),\r
("building", "commercial", "building", "commercial"),\r
("building", "yes", "building", "common"),\r
("place", "sea", "natural", "sea"),\r
- ("place", "ocean", "natural", "sea"),\r
- ("landuse", "residential", "landuse", "residential-boundary"),\r
- ("landuse", "grass", "landuse", "grass"),\r
- ("landuse", "cemetery", "landuse", "grass"),\r
- ("landuse", "greenfield", "landuse", "grass")\r
+ ("place", "ocean", "natural", "sea")\r
]\r
\r
\r
nw = (200-d,200-d,200-d,255)\r
layer_comp_pix[x,y] = nw\r
\r
+ # I need to put this special sub-call here to solve an otherwise unsolvable\r
+ # conflict with layer order\r
+ if self._tag == "landuse" and self._value == "forest":\r
+ # The residential layer MUST exist before we reach the forest part.\r
+ fn = mstr_datafolder + "_cache/" + str(self._latitude) + "-" + str(self._lat_number) + "_" + str(self._longitude) + "-" + str(self._lng_number) + "_landuse-residential_layer.png"\r
+ if os.path.isfile(fn) == True:\r
+ rsd = Image.open(fn)\r
+ layer_comp.alpha_composite(rsd)\r
+\r
# Store layer\r
if self._is_completion == False:\r
layer_comp.save( mstr_datafolder + "_cache/" + str(self._latitude) + "-" + str(self._lat_number) + "_" + str(self._longitude) + "-" + str(self._lng_number) + "_" + self._tag + "-" + self._value + "_layer.png" )\r