ivan.baricic wrote in Tue Dec 05, 2017 8:55 am:Found a minor bug in the https://gitlab.com/fg-radi/osm2city/blob/master/pylons.py (process_pylons) when C2P_PROCESS_POWERLINES == True && C2P_PROCESS_POWERLINES_MINOR == False && C2P_PROCESS_AERIALWAYS == False (there are no req_keys set to osmparser.fetch_osm_db_data_ways_keys(req_keys) => wrong SQL query in osmparser.fetch_db_way_data). I would fix it, but I do not know, what is to-do in this case.
ivan.baricic wrote in Tue Dec 05, 2017 8:55 am:Some suggestions, which tools do you use / favour for debugging the Python code, under Linux, are welcome.
self.pylon_model = 'generic_chimney_01.xml'
req_keys.append('power')
tex_y12 = self.facade_texture.y((self.body_height + self.roof_height_pts[i]) /
self.body_height * tex_coord_top_input)
if (self.body_height) == 0:
self.body_height = 1
if (tex_coord_top_input == 0):
tex_coord_top_input = 1
def _parse_building_levels(tags: Dict[str, str]) -> float:
proxy_levels = 0.
if 'building:levels' in tags:
if ';' in tags['building:levels']:
try:
proxy_levels = float(utils.osmparser.parse_multi_int_values(tags['building:levels']))
except ValueError:
proxy_levels = 0
else:
try:
proxy_levels = float(tags['building:levels'])
except ValueError:
proxy_levels = 0
if 'levels' in tags:
if ';' in tags['levels']:
try:
proxy_levels = float(utils.osmparser.parse_multi_int_values(tags['levels']))
except ValueError:
proxy_levels = 0
else:
try:
proxy_levels = float(tags['levels'])
except ValueError:
proxy_levels = 0
return proxy_levels
paju1986 wrote in Tue Dec 26, 2017 7:54 pm:Great job, but why the textures of those buildings are just a blank color with no windows or something?
vanosten wrote in Thu Dec 28, 2017 11:05 am:My focus currently (apart from actually flying one in a while) is to get the texture-map for buildings changed, such that repeating of textures is not necessary and I could start using larger texture maps.
Users browsing this forum: No registered users and 3 guests