if rw_surface == "" or rw_surface == "asphalt":\r
d = randrange(81, 101)\r
layer_comp_pix[x, y] = ( d,d,d,a[3] )\r
+ if self._tag == "aeroway" and self._value == "taxiway":\r
+ # Almost the same as above\r
+ d = randrange(81, 101)\r
+ layer_comp_pix[x, y] = ( d,d,d,a[3] )\r
if self._tag == "railway":\r
d = randrange(41, 61)\r
layer_comp_pix[x, y] = ( d,d,d,a[3] )\r
a = tag.getAttribute("k")\r
v = tag.getAttribute("v")\r
if a == "building:levels":\r
- lvl = int(v)\r
+ lvl = int(float(v)) # <- This blew layergen and maskgen at some buildings with 1.5 floors\r
break\r
return lvl\r
\r
a = tag.getAttribute("k")\r
v = tag.getAttribute("v")\r
if a == "building:min_level":\r
- lvl = int(v)\r
+ lvl = int(float(v))\r
break\r
return lvl\r
\r