- Code: Select all
******* Exception in tile 1516001 - to reprocess use boundaries: -87.75_45.5_-87.5_45.625 ******* at 2019-04-01_102533 - Traceback (most recent call last):
File "C:\Users\SH\Documents\OSMDev\osm2city\build_tiles.py", line 138, in process_scenery_tile
lit_areas, osm_buildings = ol.process(the_coords_transform, my_airports)
File "C:\Users\SH\Documents\OSMDev\osm2city\owbb\landuse.py", line 706, in process
urban_places, farm_places = m.process_osm_place_refs(transformer)
File "C:\Users\SH\Documents\OSMDev\osm2city\owbb\models.py", line 1357, in process_osm_place_refs
my_place.parse_tags_additional(relation.tags)
File "C:\Users\SH\Documents\OSMDev\osm2city\owbb\models.py", line 117, in parse_tags_additional
my_population = wio.query_population(my_id)
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\wikidata_io.py", line 56, in query_population
data = json.loads(r.content.decode())
UnboundLocalError: local variable 'r' referenced before assignment
Running with NO_ELEV=False results in many, starting with several of these:
- Code: Select all
******* Exception in tile 1499584 - to reprocess use boundaries: -89.0_45.0_-88.75_45.125 ******* at 2019-03-26_184933 - Traceback (most recent call last):
File "C:\Users\SH\Documents\OSMDev\osm2city\build_tiles.py", line 138, in process_scenery_tile
lit_areas, osm_buildings = ol.process(the_coords_transform, my_airports)
File "C:\Users\SH\Documents\OSMDev\osm2city\owbb\landuse.py", line 704, in process
aerodrome_zones = m.process_aerodrome_refs(transformer)
File "C:\Users\SH\Documents\OSMDev\osm2city\owbb\models.py", line 1207, in process_aerodrome_refs
osm_result = op.fetch_osm_db_data_ways_key_values([op.create_key_value_pair(s.K_AEROWAY, s.V_AERODROME)])
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\osmparser.py", line 487, in fetch_osm_db_data_ways_key_values
return fetch_osm_db_data_ways(req_key_values, True)
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\osmparser.py", line 470, in fetch_osm_db_data_ways
db_connection = make_db_connection()
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\osmparser.py", line 590, in make_db_connection
user=parameters.DB_USER, password=parameters.DB_USER_PASSWORD)
File "C:\Users\SH\Documents\WPy64-3680\python-3.6.8.amd64\lib\site-packages\psycopg2\__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
***************************
The, later in the exceptions.log:
***************************
- Code: Select all
******* Exception in tile 1499600 - to reprocess use boundaries: -89.0_45.25_-88.75_45.375 ******* at 2019-03-26_213749 - Traceback (most recent call last):
File "C:\Users\SH\Documents\OSMDev\osm2city\build_tiles.py", line 138, in process_scenery_tile
lit_areas, osm_buildings = ol.process(the_coords_transform, my_airports)
File "C:\Users\SH\Documents\OSMDev\osm2city\owbb\landuse.py", line 704, in process
aerodrome_zones = m.process_aerodrome_refs(transformer)
File "C:\Users\SH\Documents\OSMDev\osm2city\owbb\models.py", line 1207, in process_aerodrome_refs
osm_result = op.fetch_osm_db_data_ways_key_values([op.create_key_value_pair(s.K_AEROWAY, s.V_AERODROME)])
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\osmparser.py", line 487, in fetch_osm_db_data_ways_key_values
return fetch_osm_db_data_ways(req_key_values, True)
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\osmparser.py", line 470, in fetch_osm_db_data_ways
db_connection = make_db_connection()
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\osmparser.py", line 590, in make_db_connection
user=parameters.DB_USER, password=parameters.DB_USER_PASSWORD)
File "C:\Users\SH\Documents\WPy64-3680\python-3.6.8.amd64\lib\site-packages\psycopg2\__init__.py", line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL: database "KIMTData" does not exist
KIMTdata is an old database I had used but is not refered to in the params.ini file:
- Code: Select all
PREFIX = "KIMT3"
BOUNDARY_WEST = -89.00
BOUNDARY_SOUTH = 45.00
BOUNDARY_EAST = -87.00
BOUNDARY_NORTH = 47.00
PATH_TO_SCENERY = "..\FlightGear\TerraSync"
PATH_TO_OUTPUT = "..\OSMScenery\KIMT3"
PATH_TO_OSM2CITY_DATA = "..\OSMDev\osm2city-data"
NO_ELEV = True
FG_ELEV = ".\bin\fgelev.exe"
PROBE_FOR_WATER = True
DB_HOST = "localhost"
DB_PORT = 5432
DB_NAME = "KIMT3"
DB_USER = "postgres"
DB_USER_PASSWORD = "FG201731"
***************************
Then several instances of this:
***************************
- Code: Select all
******* Exception in tile 1499640 - to reprocess use boundaries: -89.0_45.875_-88.75_46.0 ******* at 2019-03-30_180123 - Traceback (most recent call last):
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\utilities.py", line 447, in probe
elev_is_solid_tuple = self._cache[key]
KeyError: (-88.8214264, 45.9090022)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\SH\Documents\OSMDev\osm2city\build_tiles.py", line 147, in process_scenery_tile
my_stg_entries, file_lock)
File "C:\Users\SH\Documents\OSMDev\osm2city\roads.py", line 1323, in process_roads
roads.process(the_blocked_areas, lit_areas, stats) # does the heavy lifting incl. clustering
File "C:\Users\SH\Documents\OSMDev\osm2city\roads.py", line 423, in process
self._check_ways_in_water()
File "C:\Users\SH\Documents\OSMDev\osm2city\roads.py", line 459, in _check_ways_in_water
if self.fg_elev.probe_solid(Vec2d(the_node.lon, the_node.lat), is_global=True):
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\utilities.py", line 387, in probe_solid
elev_is_solid_tuple = self.probe(position, is_global)
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\utilities.py", line 450, in probe
elev_is_solid_tuple = really_probe(position)
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\utilities.py", line 396, in really_probe
self._open_fgelev()
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\utilities.py", line 368, in _open_fgelev
bufsize=1, universal_newlines=True)
File "C:\Users\SH\Documents\WPy64-3680\python-3.6.8.amd64\lib\subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "C:\Users\SH\Documents\WPy64-3680\python-3.6.8.amd64\lib\subprocess.py", line 1017, in _execute_child
startupinfo)
PermissionError: [WinError 5] Access is denied
******* Exception in tile 1499641 - to reprocess use boundaries: -88.75_45.875_-88.5_46.0 ******* at 2019-03-30_180132 - Traceback (most recent call last):
File "C:\Users\SH\Documents\OSMDev\osm2city\utils\utilities.py", line 447, in probe
elev_is_solid_tuple = self._cache[key]
KeyError: (-88.6481458, 45.9890979)
As a user of OSM2City, not a developer, I don't have a clue as to what the problem is with my install/configuration. Any help will be much appreciated, as the results of running with NO_ELEV=True looks very good, but underground!! (As would be expected)