vanosten wrote in Mon Mar 30, 2020 6:56 pm:I checked. The reason is that one end of the bridge is in the water according to FG scenery. So osm2city needs to assume that it would look odd and therefore does not place a bridge. Once we get a world scenery with cost lines much more aligned with OSM, it will work. Until then: bad luck or place a custom scenery object
Okay, thanks for the information. I am trying to do this with custom scenery that should match the OSM coastlines much more closely. Is there a way I can make it use that instead? Or maybe it already is, but the coastlines still don't match quite well enough? FG_ROOT is pointing to the official fgdata directory, and here are my parameters.
- Code: Select all
PREFIX = "block13"
PATH_TO_SCENERY = "/home/dello/Projects/FGScenery_development/MidAtlantic/output"
PATH_TO_OUTPUT = "/home/dello/Projects/FGScenery_development/MidAtlantic/output"
PATH_TO_OSM2CITY_DATA = "/home/dello/Projects/FGScenery_tools/osm2city-data"
NO_ELEV = False
FG_ELEV = "/usr/bin/fgelev"
PROBE_FOR_WATER = True
OWBB_USE_BTG_LANDUSE = False
BUILDING_FORCE_EUROPEAN_INNER_CITY_STYLE = False
POINTS_ON_LINE_DISTANCE_MAX = 100
MAX_SLOPE_ROAD = 0.15
DB_HOST = "localhost"
DB_PORT = 5432
DB_NAME = "block13"
DB_USER = "postgres"
DB_USER_PASSWORD = "***********"
I think it should be working with my custom scenery, based on the PATH_TO_SCENERY variable. If that's not the case, then I would definitely like to know how to make it use my scenery. Also, can I edit the code to make it generate the bridge anyway? Or what if I just turn off PROBE_FOR_WATER?
Edit: here is a map showing my custom landcover data. If it's not matching the OSM data, it's not off by much.