Board index FlightGear Development Scenery

osm2city.py development

Questions and discussion about enhancing and populating the FlightGear world.

Re: osm2city.py development

Postby saul » Wed Jul 11, 2018 9:32 pm

Hello,

I have just pulled the latest version (Sun Jul 1 21:30:29 2018 +0200) and tried to generate osm objects around Stockholm - Uppsala area. It seems some of the tiles could not be generated due to some exceptions. The problematic tiles are exactly on Stockholm downtown. Here below you can find the osm2city.exceptions.log and my params.ini file. I am executing the script with the following line using python3.6:

/usr/bin/python3.6 build_tiles.py -f stockholm/params.ini -b 17.00_59.00_19.20_60.00 -p 4

Any help is highly appreciated!

Saul

**************** osm2city-exceptions.log **********************'

******* Exception in tile 1627558 - to reprocess use boundaries: -80.25_-3.5_-80.125_-3.375 ******* at 2018-07-01_100144 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1288, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 355, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 724, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples
******* Exception in tile 1627743 - to reprocess use boundaries: -80.125_-0.625_-80.0_-0.5 ******* at 2018-07-01_101351 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1288, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 355, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 724, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples
******* Exception in tile 1627767 - to reprocess use boundaries: -80.125_-0.25_-80.0_-0.125 ******* at 2018-07-01_101531 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1288, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 355, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 724, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples
******* Exception in tile 1627714 - to reprocess use boundaries: -80.75_-1.0_-80.625_-0.875 ******* at 2018-07-01_104444 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1288, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 355, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 724, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples
******* Exception in tile 1660483 - to reprocess use boundaries: -78.625_-1.0_-78.5_-0.875 ******* at 2018-07-01_111321 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1387, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 928, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 998, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 1644218 - to reprocess use boundaries: -79.75_0.875_-79.625_1.0 ******* at 2018-07-01_111512 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1387, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 928, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 998, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3237200 - to reprocess use boundaries: 17.0_59.25_17.25_59.375 ******* at 2018-07-11_171621 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1288, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 355, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 724, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples
******* Exception in tile 3237194 - to reprocess use boundaries: 17.5_59.125_17.75_59.25 ******* at 2018-07-11_172046 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1387, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 928, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 998, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3237195 - to reprocess use boundaries: 17.75_59.125_18.0_59.25 ******* at 2018-07-11_172529 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1387, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 928, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 998, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3237219 - to reprocess use boundaries: 17.75_59.5_18.0_59.625 ******* at 2018-07-11_173221 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1387, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 928, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 998, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3237211 - to reprocess use boundaries: 17.75_59.375_18.0_59.5 ******* at 2018-07-11_180913 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1387, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 928, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 998, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3253618 - to reprocess use boundaries: 18.5_59.75_18.75_59.875 ******* at 2018-07-11_182152 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1387, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 928, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 998, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3253584 - to reprocess use boundaries: 18.0_59.25_18.25_59.375 ******* at 2018-07-11_194000 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1288, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 355, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 724, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples
******* Exception in tile 3237200 - to reprocess use boundaries: 17.0_59.25_17.25_59.375 ******* at 2018-07-11_204234 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1284, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 343, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY, self.refs_shared)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 736, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples
******* Exception in tile 3237194 - to reprocess use boundaries: 17.5_59.125_17.75_59.25 ******* at 2018-07-11_204620 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1383, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 921, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 991, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3237195 - to reprocess use boundaries: 17.75_59.125_18.0_59.25 ******* at 2018-07-11_205042 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1383, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 921, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 991, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3237219 - to reprocess use boundaries: 17.75_59.5_18.0_59.625 ******* at 2018-07-11_205737 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1383, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 921, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 991, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3237211 - to reprocess use boundaries: 17.75_59.375_18.0_59.5 ******* at 2018-07-11_213420 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1383, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 921, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 991, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3253618 - to reprocess use boundaries: 18.5_59.75_18.75_59.875 ******* at 2018-07-11_214628 -
Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 697, in process_buildings
cluster_elev, cluster_offset, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1383, in write
b.write_to_ac(ac_object, cluster_elev, cluster_offset, roof_mgr, face_mat_idx, roof_mat_idx, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 921, in write_to_ac
face_mat_idx)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 991, in _write_faces_for_ac
self.body_height * tex_coord_top_input)
ZeroDivisionError: float division by zero
******* Exception in tile 3253584 - to reprocess use boundaries: 18.0_59.25_18.25_59.375 ******* at 2018-07-11_230625 -
Traceback (most recent call last):
File "shapely/speedups/_speedups.pyx", line 234, in shapely.speedups._speedups.geos_linearring_from_py
AttributeError: 'list' object has no attribute '__array_interface__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/saul/flightgear/dev_osmcity/osm2city/build_tiles.py", line 141, in process_scenery_tile
osm_buildings, file_lock)
File "/home/saul/flightgear/dev_osmcity/osm2city/buildings.py", line 636, in process_buildings
prepare_textures.facades, prepare_textures.roofs, stats)
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 1284, in analyse
stats.nodes_simplified += b.simplify()
File "/home/saul/flightgear/dev_osmcity/osm2city/building_lib.py", line 343, in simplify
parameters.BUILDING_SIMPLIFY_TOLERANCE_AWAY, self.refs_shared)
File "/home/saul/flightgear/dev_osmcity/osm2city/utils/utilities.py", line 736, in simplify_balconies
reduced_poly = shg.Polygon(shg.LinearRing(ny_coords))
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 53, in __init__
self._set_coords(coordinates)
File "/usr/lib/python3/dist-packages/shapely/geometry/polygon.py", line 68, in _set_coords
ret = geos_linearring_from_py(coordinates)
File "shapely/speedups/_speedups.pyx", line 321, in shapely.speedups._speedups.geos_linearring_from_py
ValueError: A LinearRing must have at least 3 coordinate tuples

****************************** params.ini ******************************'
PREFIX = "STOCKHOLM"

MAX_SLOPE_ROAD = 0.20
MIN_ABOVE_GROUND_LEVEL = 0.02

PATH_TO_SCENERY = "/home/saul/flightgear/scenery"
PATH_TO_OUTPUT = "/home/saul/flightgear/custom_scen/STOCKHOLM"

PATH_TO_OSM2CITY_DATA = "/home/saul/flightgear/dev_osmcity/osm2city-data"

DB_HOST = "localhost"
DB_PORT = 5432
DB_NAME = "stockholm"
DB_USER = "giuser"
DB_USER_PASSWORD = "hola"


NO_ELEV = False
FG_ELEV = "/home/saul/flightgear/stable/install/flightgear/bin/fgelev"
saul
 
Posts: 28
Joined: Tue Nov 26, 2013 9:57 pm

Re: osm2city.py development

Postby merspieler » Thu Jul 12, 2018 11:27 am

Just a thought... how about providing a docker image like it's available for terragear?

This would make things much easier for ppl who just want to build some area...
Love at first flight
merspieler
 
Posts: 118
Joined: Thu Oct 26, 2017 10:43 am
Location: GCLP
Callsign: LH454, HG3840, JQ400
Version: 2018.2.2
OS: Linux

Re: osm2city.py development

Postby vanosten » Sun Jul 15, 2018 5:47 pm

As of now osm2city needs also (parts of) FG for terrain elevation (fgelev). In order to minimize the Docker image you would have to make a minimal compile - which I have no intentions to invest time into. Maybe it can be done differently too. If someone could creste a script, then I might look into it. However the image would also need hosting space and would probably be outdated pretty fast. (osm2city has no releases - yet)
Maintaining osm2city
vanosten
 
Posts: 299
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Previous

Return to Scenery

Who is online

Users browsing this forum: No registered users and 2 guests