Board index FlightGear Development Scenery

osm2city.py development

Questions and discussion about enhancing and populating the FlightGear world.

Re: osm2city.py development

Postby Johan G » Tue Nov 10, 2015 4:09 pm

pommesschranke wrote in Tue Nov 10, 2015 1:42 pm:maybe you see a mix of Pylons...

Aha. Looking closer at the screenshots I can only see one set of wires.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Re: osm2city.py development

Postby wkitty42 » Wed Nov 11, 2015 9:32 pm

the thing that gets me most of the time is that these power pylons are simply too large... at least they look that way... especially when they are up near a bridge like around KSFO...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: osm2city.py development

Postby alge » Sat Nov 14, 2015 9:03 pm

Had a problem where the roads.py code for joining ways merged a railway and road, which didn't look too good. What's the preferred way of providing bugfixes? I made a merge request, if that's it: https://gitlab.com/fg-radi/osm2city/merge_requests/5
alge
 
Posts: 77
Joined: Thu Aug 30, 2012 1:45 am

Re: osm2city.py development

Postby radi » Mon Nov 16, 2015 1:20 am

Thanks, that's the way to go. Merged.
OSM buildings for LOWI, EDDC
Custom scenery for VHXX YMML
Edit .stg via the FG Object Placement Tool
radi
 
Posts: 659
Joined: Mon Aug 25, 2008 5:24 pm
Location: YMML, EDDC

Re: osm2city.py development

Postby legoboyvdlp » Wed Dec 09, 2015 1:29 am

Hello.
Where can I see if there is a building in Open Street Map?

I want to see if osm2city could make the terminal of New Chisote (RJCC) for the Festival...
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: osm2city.py development

Postby radi » Wed Dec 09, 2015 2:52 am

Just zoom in. RJCC terminals are in openstreetmap, and also some scattered buildings north of the terminals: http://osm.org/go/7XDb621F
OSM buildings for LOWI, EDDC
Custom scenery for VHXX YMML
Edit .stg via the FG Object Placement Tool
radi
 
Posts: 659
Joined: Mon Aug 25, 2008 5:24 pm
Location: YMML, EDDC

Re: osm2city.py development

Postby legoboyvdlp » Wed Dec 09, 2015 3:02 am

Thanks.
Will be a big help.
Will see what I can do...
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: osm2city.py development

Postby legoboyvdlp » Thu Dec 10, 2015 5:34 pm

Right. I downloaded Python 2.7.
I downloaded Shapeley-1.5.13-cp27-none-win_amd64.whl
I downloaded networkx-1.10-py2.7.egg
I downloaded numpy-1.9.3+mkl-cp27-none-win_amd64.whl
I downloaded Pillow-2.5.0-win-amd64-py2.7.exe (At last! An .exe :) )

I CANNOT FIND SCIPY-STACK ON THE REFERENCED WEBPAGE -- WHERE CAN I GET IT FOR WINDOWS?
(Sorry, had to write all caps to bring it to attention, as I am sure it is pretty important...

And how the heck do I install .whls and .eggs?

And Pillow-2.5.0 crashes when I hit the next button to install it after setting my paths.

Did anyone else on Windows EVER get it done?
I really want to build Chitose for the Festival...
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: osm2city.py development

Postby pommesschranke » Thu Dec 10, 2015 7:11 pm

I don't have Windows and I never tried to install Python on Windows.
but I found this:

https://pypi.python.org/pypi/wheel

http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

did you ever try Linux ?
maybe in a virtual machine ?
..or boot it from an external USB Stick or HD

it's worth a try.
pommesschranke
 
Posts: 1117
Joined: Sat Apr 27, 2013 8:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Kubuntu 22.04

Re: osm2city.py development

Postby legoboyvdlp » Thu Dec 10, 2015 7:14 pm

Thank you!
Hmm... is Pillow absoluteoy necessary for osm2city?
Thanks for the links.
I will see what I can do.
Nope, I love Windows too much :)



Ah, I see.
So I could use 7ZIP?

But where do I extract it to for that?
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: osm2city.py development

Postby legoboyvdlp » Thu Dec 10, 2015 7:54 pm

If I understand the instructions correctly...
C:\Program Files (x86)\Python2.7\Lib\site-packages\networkx is correct?

I copied folder 'networkx' into C:\Program Files (x86)\Python2.7\Lib\site-packages

Doing the same with 'numpy', 'numpy-1.9.3-data' and 'shapely'.

Pillow still crashes...



And I downloaded pillow in 'egg' format.
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: osm2city.py development

Postby legoboyvdlp » Thu Dec 10, 2015 7:58 pm

It's running!
Everything OK and normal here?
Code: Select all
$ python osm2city.py -f RJCJ/params.ini
Traceback (most recent call last):
  File "osm2city.py", line 70, in <module>
    import building_lib
  File "C:\Users\Redpath\Documents\GitHub\osm2city\building_lib.py", line 18, in
 <module>
    import textures.manager as tm
  File "C:\Users\Redpath\Documents\GitHub\osm2city\textures\manager.py", line 32
, in <module>
    import tools
  File "C:\Users\Redpath\Documents\GitHub\osm2city\tools.py", line 35, in <modul
e>
    import matplotlib.pyplot as plt
  File "c:\Program Files (x86)\Python2.7\lib\site-packages\matplotlib\__init__.p
y", line 124, in <module>
    from matplotlib.rcsetup import (defaultParams,
  File "c:\Program Files (x86)\Python2.7\lib\site-packages\matplotlib\rcsetup.py
", line 29, in <module>
    from cycler import Cycler, cycler as ccycler
  File "c:\Program Files (x86)\Python2.7\lib\site-packages\cycler.py", line 4, i
n <module>
    import six
ImportError: No module named six

Redpath@Redpath-PC ~/Documents/GitHub/osm2city (master)
$ python osm2city.py -f RJCJ/params.ini
Traceback (most recent call last):
  File "osm2city.py", line 70, in <module>
    import building_lib
  File "C:\Users\Redpath\Documents\GitHub\osm2city\building_lib.py", line 18, in
 <module>
    import textures.manager as tm
  File "C:\Users\Redpath\Documents\GitHub\osm2city\textures\manager.py", line 32
, in <module>
    import tools
  File "C:\Users\Redpath\Documents\GitHub\osm2city\tools.py", line 35, in <modul
e>
    import matplotlib.pyplot as plt
  File "c:\Program Files (x86)\Python2.7\lib\site-packages\matplotlib\__init__.p
y", line 143, in <module>
    raise ImportError("matplotlib requires dateutil")
ImportError: matplotlib requires dateutil

Redpath@Redpath-PC ~/Documents/GitHub/osm2city (master)
$ python osm2city.py -f RJCJ/params.ini
WARNING:root:Unknown parameter: TEXTURES=<module 'textures' from 'C:\Users\Redpa
th\Documents\GitHub\osm2city\textures\__init__.pyc'>
WARNING:root:Unknown parameter: QUIET=False
--- Using the following parameters: ---
ATLAS_SUFFIX_DATE = False
BOUNDARY_CLIPPING = True
BOUNDARY_CLIPPING_BORDER_SIZE = 0.25
BOUNDARY_EAST = 141.71181
BOUNDARY_NORTH = 42.8199
BOUNDARY_SOUTH = 42.75388
BOUNDARY_WEST = 141.6404
BRIDGE_BODY_HEIGHT = 0.9
BRIDGE_LAYER_HEIGHT = 4.0
BRIDGE_MIN_LENGTH = 20.0
BUILDING_CITY_LEVELS_HEIGH = 5.0
BUILDING_CITY_LEVELS_LOW = 2.0
BUILDING_CITY_LEVELS_MODE = 3.5
BUILDING_CITY_LEVEL_HEIGHT_HEIGH = 3.6
BUILDING_CITY_LEVEL_HEIGHT_LOW = 3.1
BUILDING_CITY_LEVEL_HEIGHT_MODE = 3.3
BUILDING_COMPLEX_MIN_HEIGHT = 2
BUILDING_COMPLEX_ROOFS = 1
BUILDING_COMPLEX_ROOFS_MAX_AREA = 1000
BUILDING_COMPLEX_ROOFS_MAX_LEVELS = 3
BUILDING_FAKE_AMBIENT_OCCLUSION = True
BUILDING_FAKE_AMBIENT_OCCLUSION_HEIGHT = 6.0
BUILDING_FAKE_AMBIENT_OCCLUSION_VALUE = 0.6
BUILDING_MIN_AREA = 50.0
BUILDING_MIN_HEIGHT = 1
BUILDING_NEVER_SKIP_LEVELS = 6
BUILDING_REDUCE_CHECK_TOUCH = False
BUILDING_REDUCE_RATE = 0.5
BUILDING_REDUCE_THRESHOLD = 200.0
BUILDING_REMOVE_WITH_PARTS = False
BUILDING_SIMPLIFY_TOLERANCE = 1.0
BUILDING_SKEL_MAX_HEIGHT_RATIO = 0.7
BUILDING_SKEL_MAX_NODES = 10
BUILDING_SKEL_ROOFS = 1
BUILDING_SKEL_ROOFS_MAX_ANGLE = 50
BUILDING_SKEL_ROOFS_MIN_ANGLE = 20
BUILDING_UNKNOWN_ROOF_TYPE = flat
C2P_CABLES_NO_SHADOW = True
C2P_CATENARY_A_AERIALWAY_CABLE_CAR = 1500
C2P_CATENARY_A_AERIALWAY_CHAIR_LIFT = 1500
C2P_CATENARY_A_AERIALWAY_DRAG_LIFT = 1500
C2P_CATENARY_A_AERIALWAY_GONDOLA = 1500
C2P_CATENARY_A_AERIALWAY_GOODS = 1500
C2P_CATENARY_A_OVERHEAD_LINE = 600
C2P_CATENARY_A_POWER_LINE = 1500
C2P_CATENARY_A_POWER_MINOR_LINE = 1200
C2P_CATENARY_MIN_DISTANCE = 30
C2P_CLUSTER_AERIALWAY_MAX_LENGTH = 300
C2P_CLUSTER_OVERHEAD_LINE_MAX_LENGTH = 130
C2P_CLUSTER_POWER_LINE_MAX_LENGTH = 300
C2P_EXTRA_VERTICES_AERIALWAY_CABLE_CAR = 5
C2P_EXTRA_VERTICES_AERIALWAY_CHAIR_LIFT = 3
C2P_EXTRA_VERTICES_AERIALWAY_DRAG_LIFT = 0
C2P_EXTRA_VERTICES_AERIALWAY_GONDOLA = 3
C2P_EXTRA_VERTICES_AERIALWAY_GOODS = 5
C2P_EXTRA_VERTICES_OVERHEAD_LINE = 2
C2P_EXTRA_VERTICES_POWER_LINE = 3
C2P_EXTRA_VERTICES_POWER_MINOR_LINE = 3
C2P_POWER_LINE_ALLOW_100M = False
C2P_PROCESS_AERIALWAYS = True
C2P_PROCESS_OVERHEAD_LINES = True
C2P_PROCESS_POWERLINES = True
C2P_PROCESS_STREETLAMPS = True
C2P_RADIUS_AERIALWAY_CABLE_CAR = 0.05
C2P_RADIUS_AERIALWAY_CHAIR_LIFT = 0.05
C2P_RADIUS_AERIALWAY_DRAG_LIFT = 0.03
C2P_RADIUS_AERIALWAY_GONDOLA = 0.05
C2P_RADIUS_AERIALWAY_GOODS = 0.03
C2P_RADIUS_OVERHEAD_LINE = 0.02
C2P_RADIUS_POWER_LINE = 0.1
C2P_RADIUS_POWER_MINOR_LINE = 0.05
C2P_RADIUS_TOP_LINE = 0.02
C2P_STREETLAMPS_MAX_DISTANCE_LANDUSE = 100
C2P_STREETLAMPS_MIN_STREET_LENGTH = 20
C2P_STREETLAMPS_OTHER_DISTANCE = 70
C2P_STREETLAMPS_RESIDENTIAL_DISTANCE = 40
CLUSTER_MIN_OBJECTS = 5
CONCURRENCY = 1
CREATE_ATLAS = True
CREATE_BRIDGES_ONLY = 0
DEBUG_PLOT = 0
ELEV_MODE = FgelevCaching
ELEV_RASTER_X = 10
ELEV_RASTER_Y = 10
EMBANKMENT_TEXTURE = (0.5, 0.625)
EXPERIMENTAL_INNER = 0
FG_ELEV = "D:/Program Files/FlightGear/bin/Win64/fgelev.exe"
IGNORE_PKL_OVERWRITE = True
KEEP_LIST = []
LIGHTMAP_ENABLE = 1
LOD_ALWAYS_BARE_ABOVE_LEVELS = 10
LOD_ALWAYS_DETAIL_BELOW_AREA = 150
LOD_ALWAYS_DETAIL_BELOW_LEVELS = 3
LOD_ALWAYS_ROUGH_ABOVE_AREA = 500
LOD_ALWAYS_ROUGH_ABOVE_LEVELS = 6
LOD_PERCENTAGE_DETAIL = 0.5
LOGLEVEL = INFO
LU_LANDUSE_BUILDING_BUFFER_DISTANCE = 25
LU_LANDUSE_BUILDING_BUFFER_DISTANCE_MAX = 50
LU_LANDUSE_GENERATE_LANDUSE = True
LU_LANDUSE_MIN_AREA = 5000
MAX_OBJECTS = 2000
MAX_SLOPE_MOTORWAY = 0.03
MAX_SLOPE_RAILWAY = 0.04
MAX_SLOPE_ROAD = 0.08
MAX_TRANSVERSE_GRADIENT = 0.1
NO_ELEV = False
OBSTRUCTION_LIGHT_MIN_LEVELS = 10
OSM_FILE = buildings.osm
OVERLAP_CHECK = True
OVERLAP_CHECK_INSIDE = False
OVERLAP_RADIUS = 5
PATH_TO_OUTPUT = C:\Users\Redpath\Documents\FlightGear\RJCJ
PATH_TO_SCENERY = C:\Users\Redpath\Documents\FlightGear\TerraSync
PREFIX = RJCJ
SKIP_LIST = [u'Theologische Fakult\xe4t', 'Rhombergpassage', 55875208]
TILE_SIZE = 2000
TRAFFIC_SHADER_ENABLE = False
USE_PKL = False
quiet = False
vec2d = <class 'vec2d.vec2d'>
------
INFO:root:Executing tex.src\brick.py
INFO:root:Executing tex.src\industrial_metal_128x32m.py
INFO:root:Executing tex.src\stone.py
INFO:root:Executing tex.src\timber_framing_20mx24m.py
WARNING:root:Skipping non-existing texture tex.src/timber_framing_red_20x24m.png

WARNING:root:Skipping non-existing texture tex.src/timber_framing_yellow_20x24m.
png
WARNING:root:Skipping non-existing texture tex.src/timber_framing_white_20x24m.p
ng
WARNING:root:Skipping non-existing texture tex.src/timber_framing_blue_20x24m.pn
g
WARNING:root:Skipping non-existing texture tex.src/timber_framing_brown_20x24m.p
ng
WARNING:root:Skipping non-existing texture tex.src/timber_framing_pink_20x24m.pn
g
WARNING:root:Skipping non-existing texture tex.src/timber_framing_cream_20x24m.p
ng
INFO:root:Executing tex.src\de\commercial\facade_modern_21x42m.py
INFO:root:Executing tex.src\de\commercial\facade_modern_black_46x60m.py
INFO:root:Executing tex.src\de\commercial\facade_modern_commercial_35x20m.py
INFO:root:Executing tex.src\de\commercial\facade_modern_commercial_90x340m.py
INFO:root:Executing tex.src\de\commercial\facade_modern_commercial_green_red_27x
39m.py
INFO:root:Executing tex.src\de\commercial\facade_modern_commercial_red_gray_20x1
4m.py
INFO:root:Executing tex.src\de\industrial\facade_industrial_red_white_24x18m.py

INFO:root:Executing tex.src\de\industrial\facade_industrial_white_26x14m.py
INFO:root:Executing tex.src\de\industrial\old_factory_30x07m.py
INFO:root:Executing tex.src\de\industrial\transformer_07x03m.py
INFO:root:Executing tex.src\de\residential\CIMG8177_18x14m.py
INFO:root:Executing tex.src\de\residential\coloured_6x12m.py
INFO:root:Executing tex.src\de\residential\cream2_08x05m.py
INFO:root:Executing tex.src\de\residential\cream3_10x06m.py
INFO:root:Executing tex.src\de\residential\cream_high_08x13m.py
INFO:root:Executing tex.src\de\residential\DSCF9495_pow2.py
INFO:root:Executing tex.src\de\residential\DSCF9503_noroofsec_pow2.py
INFO:root:Executing tex.src\de\residential\DSCF9678_pow2.py
INFO:root:Executing tex.src\de\residential\DSCF9710.py
INFO:root:Executing tex.src\de\residential\DSCF9726_noroofsec_pow2.py
INFO:root:Executing tex.src\de\residential\facade_modern36x36_12.py
INFO:root:Executing tex.src\de\residential\facade_modern_residential_25x15m.py
INFO:root:Executing tex.src\de\residential\facade_modern_residential_26x34m.py
INFO:root:Executing tex.src\de\residential\hotel_18x40m.py
INFO:root:Executing tex.src\de\residential\LZ_old_bright_bc2.py
INFO:root:Executing tex.src\de\residential\red_6x12m.py
INFO:root:Executing tex.src\de\residential\wbs70_36x36m.py
INFO:root:Executing tex.src\de\residential\wohnheime_petersburger.py
INFO:root:Executing tex.src\gb\residential\plaster1_07x03m.py
INFO:root:Executing tex.src\gb\residential\plaster2_09x05m.py
INFO:root:Executing tex.src\gb\residential\plaster3_10x03m.py
INFO:root:Executing tex.src\gb\residential\sandstone1_13x06m.py
INFO:root:Executing tex.src\gb\residential\sandstone2_13x03m.py
INFO:root:Executing tex.src\gb\residential\sandstone3_16x03m.py
INFO:root:Executing tex.src\gb\residential\sandstone4_09x05m.py
INFO:root:Executing tex.src\gb\residential\sandstone5_06x07m.py
INFO:root:Executing tex.src\gb\residential\sandstone6_16x11m.py
INFO:root:Executing tex.src\residential\plaster_6x12m.py
INFO:root:Executing tex.src\residential\timber_framing_12mx12m.py
WARNING:root:Skipping non-existing texture tex.src/residential/timber_framing_br
own_12x12m.png
INFO:root:Executing tex.src\us\commercial\10storymodernconcrete.py
INFO:root:Executing tex.src\us\commercial\15storyltbrownconcroffice3.py
INFO:root:Executing tex.src\us\commercial\18storyoffice.py
INFO:root:Executing tex.src\us\commercial\19storyretromodern.py
INFO:root:Executing tex.src\us\commercial\20storybrownconcrmodern.py
INFO:root:Executing tex.src\us\commercial\20storygreycncrglassmodern.py
INFO:root:Executing tex.src\us\commercial\25storyBrownWide1.py
INFO:root:Executing tex.src\us\commercial\27storyConcrBrownGlass.py
INFO:root:Executing tex.src\us\commercial\28storymodern.py
INFO:root:Executing tex.src\us\commercial\30storyconcrbrown4.py
INFO:root:Executing tex.src\us\commercial\35storyconcrmodernwhite.py
INFO:root:Executing tex.src\us\commercial\36storyconcrglassmodern.py
INFO:root:Executing tex.src\us\commercial\40storymodern.py
INFO:root:Executing tex.src\us\commercial\41storyconcrglasswhitemodern2.py
INFO:root:Executing tex.src\us\commercial\45storyglassmodern.py
INFO:root:Executing tex.src\us\commercial\50storySteelGlassmodern1.py
INFO:root:Executing tex.src\us\commercial\5storywhite.py
INFO:root:Executing tex.src\us\commercial\7storymodernsq.py
INFO:root:Executing tex.src\us\commercial\US-dcdupontconcr5st.py
INFO:root:Executing tex.src\us\commercial\US-dchotelDC2_8st.py
INFO:root:Executing tex.src\us\commercial\US-dcofficeconcrwhite6-7st.py
INFO:root:Executing tex.src\us\commercial\US-dcofficeconcrwhite8st.py
INFO:root:Executing tex.src\us\commercial\US-OfficeModern-42st.py
WARNING:root:Skipping non-existing texture tex.src/de/castle.jpg



Edit:

OH, ****


Code: Select all
INFO:root:Final atlas height 65536
INFO:root:Saving tex/atlas_facades.pkl
INFO:root:reading elevation data
INFO:root:Loading RJCJ\elev.pkl
WARNING:root:Loading elev cache failed ([Errno 2] No such file or directory: 'RJ
CJ\\elev.pkl')
INFO:root:Spawning fgelev
INFO:root:cmd line: "D:/Program Files/FlightGear/bin/Win64/fgelev.exe" --expire
1000000 --fg-scenery C:\Users\Redpath\Documents\FlightGear\TerraSync
The device is not ready.
CRITICAL:root:Skipped 20 lines
CRITICAL:root:1 141.676 42.7869
CRITICAL:root:fgelev returned <>, resulting in list index out of range. Did fgel
ev start OK (Record : 1)?
Traceback (most recent call last):
  File "osm2city.py", line 687, in <module>
    logging.debug("height at origin" + str(elev(vec2d(0,0))))
  File "C:\Users\Redpath\Documents\GitHub\osm2city\tools.py", line 294, in __cal
l__
    elev = really_probe(position)
  File "C:\Users\Redpath\Documents\GitHub\osm2city\tools.py", line 270, in reall
y_probe
    raise RuntimeError("fgelev errors are fatal.")
RuntimeError: fgelev errors are fatal.


I don't know what to do. I guess I will try a manual fgelev...


Edit:

LOL, I fixed it :)
I just didn't set the path to fgelev.exe



4th Edit:


Oh, wait a moment.
*sigh*
Code: Select all
INFO:root:Saving tex/atlas_facades.pkl
INFO:root:reading elevation data
INFO:root:Loading RJCJ\elev.pkl
INFO:root:OK
INFO:root:Spawning fgelev
INFO:root:cmd line: "C:/Users/Redpath/Documents/Jonathans Folder/FlightGear 3.7
0/bin/fgelev.exe" --expire 1000000 --fg-scenery C:\Users\Redpath\Documents\Flig
tGear\TerraSync
INFO:root:Reading the OSM file might take some time ...
INFO:root:min/max 181.0000000 91.0000000 -181.0000000 -91.0000000
INFO:root:parsed 0 buildings.
INFO:root:Generating clusters 3217567.8301639 5355926.1868954 -26402070.6751097
-14862196.3531143
cluster:  -14808.0000000 -10108.0000000
  delta:  -29619638.5052736 -20218122.5400098
  min:  3217567.8301639 5355926.1868954
  max:  -26402070.6751097 -14862196.3531143
INFO:root:read 0 objects from 0 tiles
clusters -14808.0000000 -10108.0000000

total buildings 0
parse errors    0
written         0
  four-sided    0
skipped
  small         0
  nearby        0
  no elevation  0
  no texture    0
roof-types
used tex        0 out of 160 ( 0 %)

  complex       0
  roof_errors   0
ground nodes    0
  simplified    0
vertices        0
surfaces        0
LOD
    LOD bare        0 ( 0 %)
    LOD rough       0 ( 0 %)
    LOD detail      0 ( 0 %)

area >=
     1 m^2      0 |
    10 m^2      0 |
    20 m^2      0 |
    50 m^2      0 |
   100 m^2      0 |
   200 m^2      0 |
   500 m^2      0 |
  1000 m^2      0 |
  2000 m^2      0 |
  5000 m^2      0 |
 10000 m^2      0 |
 20000 m^2      0 |
 50000 m^2      0 |

number of corners >=
      3      0 |
      4      0 |
      5      0 |
      6      0 |
      7      0 |
      8      0 |
      9      0 |
 complex     0 |
INFO:root:done.


I better check my buildings.osm and params.ini file I guess.


Yep, my buildings.osm is empty.


Edit 6:
Y'know, it might have helped if I had used the correct download link.
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: osm2city.py development

Postby legoboyvdlp » Thu Dec 10, 2015 9:18 pm

Oh man!
This is so awesome :D
With Project3000 AND OSM buildings, Chitose is looking very pretty, and will look prettier when I finish my apt.dat for it :D

Problem is, it is all underground.
Same with Project 3000...
*sigh*

Oh well, it is still awesome.

Is it possible to manually edit the altitude of the buildings in the .stg? I really only wanted the airport terminal, so I do not mind if the city buildings start to float or somehing.

But I mean, I am using TerrSync Terrain.
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

Re: osm2city.py development

Postby radi » Thu Dec 10, 2015 11:12 pm

Code: Select all
WARNING:root:Loading elev cache failed ([Errno 2] No such file or directory: 'RJ
CJ\\elev.pkl')
INFO:root:Spawning fgelev
INFO:root:cmd line: "D:/Program Files/FlightGear/bin/Win64/fgelev.exe" --expire
1000000 --fg-scenery C:\Users\Redpath\Documents\FlightGear\TerraSync
The device is not ready.


Never seen this error before (on Linux). Also, I'm not sure what happens with spaces in file names and forward slashes on Windows. I suggest you avoid both, or all three :wink:

Fgelev is really the best way to go about elevation probing, and I won't provide much support for the other methods. Please check the wiki troubleshooting section and try running fgelev manually as described there.

Is it possible to manually edit the altitude of the buildings in the .stg? I really only wanted the airport terminal, so I do not mind if the city buildings start to float or somehing.

Sure, just google 'flightgear stg' and read about the stg file format. It's really simple. But mind you -- osm2city's mesh consists of a number of buildings. If you adjust the elevation of the terminal, everything else around it will also move.
OSM buildings for LOWI, EDDC
Custom scenery for VHXX YMML
Edit .stg via the FG Object Placement Tool
radi
 
Posts: 659
Joined: Mon Aug 25, 2008 5:24 pm
Location: YMML, EDDC

Re: osm2city.py development

Postby legoboyvdlp » Thu Dec 10, 2015 11:29 pm

D'ye know, I found out I forgot to set the path to fgelev.exe!

But now everything is allright except for the elevation of the terminal.

Plus, there are no/few buildings in Chitose city, and I only really need the terminal...
User avatar
legoboyvdlp
 
Posts: 7981
Joined: Sat Jul 26, 2014 2:28 am
Location: Northern Ireland
Callsign: G-LEGO
Version: next
OS: Windows 10 HP

PreviousNext

Return to Scenery

Who is online

Users browsing this forum: No registered users and 6 guests