Untitled diff

Créé Le diff n'expire jamais
18 suppressions
178 lignes
9 ajouts
178 lignes
#=============================================================================
#=============================================================================
# PARAMETERS FOR ALL osm2city MODULES
# PARAMETERS FOR ALL osm2city MODULES
#=============================================================================
#=============================================================================
# -- Scenery folder, typically a geographic name or the ICAO code of the airport
# -- Scenery folder, typically a geographic name or the ICAO code of the airport
PREFIX = "LSZR"
PREFIX = LFRS
# -- Boundary of the scenery in degrees (use "." not ","). The example below is from LSZR.
# -- Boundary of the scenery in degrees (use "." not ","). The example below is from LSZR.
BOUNDARY_WEST = 9.54
BOUNDARY_WEST = -1.45362
BOUNDARY_SOUTH = 47.48
BOUNDARY_SOUTH = 47.16837
BOUNDARY_EAST = 9.58
BOUNDARY_EAST = -1.65362
BOUNDARY_NORTH = 47.50
BOUNDARY_NORTH = 47.26837
# -- Full path to the scenery folder without trailing slash. There must be
# -- Full path to the scenery folder without trailing slash. There must be
# an OBJECTS/ folder below PATH_TO_SCENERY
# an OBJECTS/ folder below PATH_TO_SCENERY
PATH_TO_SCENERY = "/home/user/fgfs/scenery"
PATH_TO_SCENERY = /mnt/c/fgdata/Scenery
OSM_FILE = "buildings.osm" # -- file name of the file with OSM data. Must reside in $PREFIX
OSM_FILE = buildings.osm # -- file name of the file with OSM data. Must reside in $PREFIX
USE_PKL = False # -- instead of parsing the OSM file, read a previously created cache file $PREFIX/buildings.pkl
USE_PKL = False # -- instead of parsing the OSM file, read a previously created cache file $PREFIX/buildings.pkl
IGNORE_PKL_OVERWRITE = True # -- Ignore overwriting of Cache File
IGNORE_PKL_OVERWRITE = True # -- Ignore overwriting of Cache File
# -- write .stg, .ac, .xml to this path. If empty, data is automatically written to correct location
# -- write .stg, .ac, .xml to this path. If empty, data is automatically written to correct location
# in $PATH_TO_SCENERY
# in $PATH_TO_SCENERY
PATH_TO_OUTPUT = ""
PATH_TO_OUTPUT =
NO_ELEV = False # -- skip elevation probing
NO_ELEV = False # -- skip elevation probing
ELEV_MODE = "FgelevCaching" # -- elev probing mode. Possible values are FgelevCaching (recommended), Manual, or Telnet
ELEV_MODE = FgelevCaching # -- elev probing mode. Possible values are FgelevCaching (recommended), Manual, or Telnet
ELEV_RASTER_X = 10 # -- Distance between raster points for the derived
ELEV_RASTER_X = 10 # -- Distance between raster points for the derived
ELEV_RASTER_Y = 10 # elevation map (x is horizontal, y is vertical)
ELEV_RASTER_Y = 10 # elevation map (x is horizontal, y is vertical)
FG_ELEV = '"D:/Program Files/FlightGear/bin/Win64/fgelev.exe"'
FG_ELEV = 'fgelev'
#=============================================================================
#=============================================================================
# PARAMETERS RELATED TO BUILDINGS IN osm2city
# PARAMETERS RELATED TO BUILDINGS IN osm2city
#=============================================================================
#=============================================================================
# -- check for overlap with static models. The scenery folder must contain an "Objects" folder
# -- check for overlap with static models. The scenery folder must contain an "Objects" folder
OVERLAP_CHECK = True
OVERLAP_CHECK = True
OVERLAP_RADIUS = 5
OVERLAP_RADIUS = 5
BUILDING_REMOVE_WITH_PARTS = False
BUILDING_REMOVE_WITH_PARTS = False
TILE_SIZE = 2000 # -- tile size in meters for clustering of buildings
TILE_SIZE = 2000 # -- tile size in meters for clustering of buildings
MAX_OBJECTS = 50000 # -- maximum number of buildings to read from OSM data
MAX_OBJECTS = 170699 # -- maximum number of buildings to read from OSM data
CONCURRENCY = 1 # -- number of parallel OSM parsing threads. Unused ATM.
CONCURRENCY = 1 # -- number of parallel OSM parsing threads. Unused ATM.
# -- skip buildings based on their OSM name tag or OSM ID, in case there's already a static model for these, and the overlap check fails.
# -- skip buildings based on their OSM name tag or OSM ID, in case there's already a static model for these, and the overlap check fails.
SKIP_LIST = ["Dresden Hauptbahnhof", "Semperoper", "Zwinger", "Hofkirche",
SKIP_LIST = ["Dresden Hauptbahnhof", "Semperoper", "Zwinger", "Hofkirche",
"Frauenkirche", "Coselpalais", "Palais im Großen Garten",
"Frauenkirche", "Coselpalais", "Palais im Großen Garten",
"Residenzschloss Dresden", "Fernsehturm", "Fernsehturm Dresden", "87807683"]
"Residenzschloss Dresden", "Fernsehturm", "Fernsehturm Dresden", "87807683"]
# -- Parameters which influence the number of buildings from OSM taken to output
# -- Parameters which influence the number of buildings from OSM taken to output
BUILDING_MIN_HEIGHT = 3.4 # -- minimum height of a building to be included in output (does not include roof)
building_min_height = 0 # -- minimum height of a building to be included in output (does not include roof)
BUILDING_MIN_AREA = 50.0 # -- minimum area for a building to be included in output
BUILDING_MIN_AREA = 0 # -- minimum area for a building to be included in output
BUILDING_REDUCE_THRESHOLD = 200.0 # -- threshold area of a building below which a rate of buildings gets reduced from output
BUILDING_REDUCE_THRESHOLD = 200.0 # -- threshold area of a building below which a rate of buildings gets reduced from output
BUILDING_REDUCE_RATE = 0.5 # -- rate (between 0 and 1) of buildings below a threshold which get reduced randomly in output
BUILDING_REDUCE_RATE = 0.5 # -- rate (between 0 and 1) of buildings below a threshold which get reduced randomly in output
BUILDING_REDUCE_CHECK_TOUCH = False # -- before removing a building due to area, check whether it is touching another building and therefore should be kept
BUILDING_REDUCE_CHECK_TOUCH = False # -- before removing a building due to area, check whether it is touching another building and therefore should be kept
BUILDING_SIMPLIFY_TOLERANCE = 1.0 # -- all points in the simplified building will be within the tolerance distance of the original geometry.
BUILDING_SIMPLIFY_TOLERANCE = 1.0 # -- all points in the simplified building will be within the tolerance distance of the original geometry.
BUILDING_NEVER_SKIP_LEVELS = 6 # -- buildings that tall will never be skipped
BUILDING_NEVER_SKIP_LEVELS = 6 # -- buildings that tall will never be skipped
BUILDING_COMPLEX_ROOFS = 1 # -- generate complex roofs on buildings?
BUILDING_COMPLEX_ROOFS = 1 # -- generate complex roofs on buildings?
BUILDING_COMPLEX_ROOFS_MAX_LEVELS = 5 # -- don't put complex roofs on buildings taller than this
BUILDING_COMPLEX_ROOFS_MAX_LEVELS = 5 # -- don't put complex roofs on buildings taller than this
BUILDING_COMPLEX_ROOFS_MAX_AREA = 2000 # -- don't put complex roofs on buildings larger than this
BUILDING_COMPLEX_ROOFS_MAX_AREA = 2000 # -- don't put complex roofs on buildings larger than this
# -- Parameters which influence the height of buildings if no info from OSM is available.
# -- Parameters which influence the height of buildings if no info from OSM is available.
# It uses a triangular distribution (see http://en.wikipedia.org/wiki/Triangular_distribution)
# It uses a triangular distribution (see http://en.wikipedia.org/wiki/Triangular_distribution)
BUILDING_CITY_LEVELS_LOW = 2.0
BUILDING_CITY_LEVELS_LOW = 2.0
BUILDING_CITY_LEVELS_MODE = 3.5
BUILDING_CITY_LEVELS_MODE = 3.5
BUILDING_CITY_LEVELS_HEIGH = 5.0
BUILDING_CITY_LEVELS_HEIGH = 5.0
BUILDING_CITY_LEVEL_HEIGHT_LOW = 3.1
BUILDING_CITY_LEVEL_HEIGHT_LOW = 3.1
BUILDING_CITY_LEVEL_HEIGHT_MODE = 3.3
BUILDING_CITY_LEVEL_HEIGHT_MODE = 3.3
BUILDING_CITY_LEVEL_HEIGHT_HEIGH = 3.6
BUILDING_CITY_LEVEL_HEIGHT_HEIGH = 3.6
# FIXME: same parameters for place = town, village, suburb
# FIXME: same parameters for place = town, village, suburb
# -- The more buildings end up in LOD rough or bare, the more work for your GPU.
# -- The more buildings end up in LOD rough or bare, the more work for your GPU.
# Increasing any of the following parameters will decrease GPU load.
# Increasing any of the following parameters will decrease GPU load.
LOD_ALWAYS_DETAIL_BELOW_AREA = 150 # -- below this area, buildings will always be LOD detail
LOD_ALWAYS_DETAIL_BELOW_AREA = 150 # -- below this area, buildings will always be LOD detail
LOD_ALWAYS_ROUGH_ABOVE_AREA = 500 # -- above this area, buildings will always be LOD rough
LOD_ALWAYS_ROUGH_ABOVE_AREA = 500 # -- above this area, buildings will always be LOD rough
LOD_ALWAYS_ROUGH_ABOVE_LEVELS = 6 # -- above this number of levels, buildings will always be LOD rough
LOD_ALWAYS_ROUGH_ABOVE_LEVELS = 6 # -- above this number of levels, buildings will always be LOD rough
LOD_ALWAYS_BARE_ABOVE_LEVELS = 10 # -- really tall buildings will be LOD bare
LOD_ALWAYS_BARE_ABOVE_LEVELS = 10 # -- really tall buildings will be LOD bare
LOD_ALWAYS_DETAIL_BELOW_LEVELS = 3 # -- below this number of levels, buildings will always be LOD detail
LOD_ALWAYS_DETAIL_BELOW_LEVELS = 3 # -- below this number of levels, buildings will always be LOD detail
LOD_PERCENTAGE_DETAIL = 0.5 # -- of the remaining buildings, this percentage will be LOD detail,
LOD_PERCENTAGE_DETAIL = 0.5 # -- of the remaining buildings, this percentage will be LOD detail,
# the rest will be LOD rough.
# the rest will be LOD rough.
LIGHTMAP_ENABLE = 1 # -- include lightmap in xml
LIGHTMAP_ENABLE = 1 # -- include lightmap in xml
OBSTRUCTION_LIGHT_MIN_LEVELS = 15 # -- put obstruction lights on buildings with >= given levels
OBSTRUCTION_LIGHT_MIN_LEVELS = 15 # -- put obstruction lights on buildings with >= given levels
EXPERIMENTAL_USE_SKEL = 0 # -- generate complex roofs with pySkeleton?
EXPERIMENTAL_USE_SKEL = 0 # -- generate complex roofs with pySkeleton?
SKEL_MAX_NODES = 10 # -- max number of nodes for which we generate complex roofs
SKEL_MAX_NODES = 10 # -- max number of nodes for which we generate complex roofs
SKEL_MAX_HEIGHT_RATIO = 0.7 # --
SKEL_MAX_HEIGHT_RATIO = 0.7 # --
EXPERIMENTAL_INNER = 0
EXPERIMENTAL_INNER = 0
CLUSTER_MIN_OBJECTS = 5 # -- discard cluster if to little objects
CLUSTER_MIN_OBJECTS = 5 # -- discard cluster if to little objects
#=============================================================================
#=============================================================================
# EXPERIMENTAL PARAMETERS, work in progress, YMMV
# EXPERIMENTAL PARAMETERS, work in progress, YMMV
#=============================================================================
#=============================================================================
#=============================================================================
#=============================================================================