Hi vanosten
I think slowly wien is a special case because I
downloded LOWI with Insbruck , zirl in the west and Schwaz in the east , a big area over 4 tiles and it works perfect !!!
BOUNDARY_WEST = 11.16
BOUNDARY_SOUTH = 47.20
BOUNDARY_EAST = 11.79
BOUNDARY_NORTH = 47.38
Before we get into details about errors , the best is that you answer a few questions, to clarify something to me.
----------------------------------------------------------------------------------------------------------------
Question 1:
----------------------------------------------------------------------------------------------------------------
If i download OSM data and generate the buildings in different areas , do i have (is it a must) to start prepare_textures.py allways? I guess it only influence the textures but nothing more.
----------------------------------------------------------------------------------------------------------------
Question 2:
----------------------------------------------------------------------------------------------------------------
I tried the batch_processing but i get an error
D:\FG\SC\OSM_PROJECTS> python3 D:\FG\SC\OSM_Development35\osm2city\batch_processing\build_tiles.py -t e009n47 -f CH_OSM\params_kp.ini -o params.ini
Traceback (most recent call last):
File "D:\FG\SC\OSM_Development35\osm2city\batch_processing\build_tiles.py", line 14, in <module>
import parameters
ImportError: No module named 'parameters'
do i have forget something for python ??
Directory Structure what i use:
D:\FG\SC\OSM_Development35\osm2city
D:\FG\SC\SCENERY_OSM\CH_OSM This is the output Directory
D:\FG\SC\OSM_PROJECTS Here i start: python3 D:\FG\SC\OSM_Development35\osm2city\batch_processing\build_tiles.py -t e009n47 -f CH_OSM\params_kp.ini -o params.ini
D:\FG\SC\OSM_PROJECTS\CH_OSM\params_kp.ini
This is params_kp.ini
PREFIX = "CH_OSM"
BOUNDARY_WEST = 16.2433
BOUNDARY_SOUTH = 48.0974
BOUNDARY_EAST = 16.6427
BOUNDARY_NORTH = 48.3251
PATH_TO_SCENERY = "D:/FG/SC/SC_HD"
PATH_TO_OUTPUT = "D:\FG\SC\SCENERY_OSM\CH_OSM"
PATH_TO_OSM2CITY_DATA = "D:/FG/SC/OSM_Development35/osm2city-data"
OSM_FILE = "buildings.osm"
NO_ELEV = False # -- skip elevation probing
ELEV_MODE = "FgelevCaching"
FG_ELEV = '"D:/FG/FlightGear36/bin/fgelev.exe"'
----------------------------------------------------------------------------------------------------------------
Question 3:
----------------------------------------------------------------------------------------------------------------
Is it possible to downlod a big area from osm with wget. lets say from vienna and suburbs
and generate the buildings only for a small area like the first district ( I think i have done this with the old python 2.7 Version)?
----------------------------------------------------------------------------------------------------------------
Now I have 2 problems.
A)
I download as you said only 1 tile from Vienna and i get no output (means no buildings).
ERROR:root:Failed to parse building (A LinearRing must have at least 3 coordinate tuples) WayID 357085032 {'building:part': 'yes'} Refs [3624570540, 1842593375]
B)
Then i tried to generate only the first district from vienna and get the KeyError: 1936175569
I have downloaded your bugfix before. As you mentioned before.
" For the last thing. Yes, this is a bug fixed on Monday (i.e. please pull the latest version from GIT). The error was triggered, when the building was tagged "building:part", which tends to happen only in well modeled cities (and my default test range did not include it
). "
# first district
BOUNDARY_WEST = 16.356801
BOUNDARY_SOUTH = 48.199601
BOUNDARY_EAST = 16.385801
BOUNDARY_NORTH = 48.220301
INFO:root:Reading OSM data from xml took 140.8212 seconds.
Traceback (most recent call last):
File "D:\FG\SC\OSM_Development35\osm2city\buildings.py", line 600, in <module>
process()
File "D:\FG\SC\OSM_Development35\osm2city\buildings.py", line 444, in process
the_buildings = _process_osm_building(osm_nodes_dict, osm_ways_dict, clipping_border)
File "D:\FG\SC\OSM_Development35\osm2city\buildings.py", line 212, in _process_osm_building
first_node = nodes_dict[way.refs[0]]
KeyError: 1936175569
Hope this was not to much for you. I slowly think may if i should go back to python version 2.7 and try it , what happens
-