Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ortho4XP: how to not flatten any airports

Featured Replies

I know that you can designate airports in the .cfg file that you don't want to flatten--but it has to be a list of every individual airport. You have to name each one by the ICAO code. Is there a way to just not flatten any airports at all? Alternatively, Is there a way I can cut and paste every airport code in the cfg file?

  • Moderator

I'm sure there is probably an easier way, but you can remove airport flattening completely by editing Ortho4XP.py (or Ortho4XP_development.py)

 

Find the line around 522 or so which reads:

if (wayid in dicosmw_icao):
    if (dicosmw_icao[wayid] in sloped_airports_list) or (dicosmw_icao[wayid] in do_not_flatten_these_list):
        print("          I will not flatten "+dicosmw_icao[wayid]+ " airport.")
        keep_that_one=False
               

back up the old file, and then just replace it with

keep_that_one = False

If you know Python, it would be easy enough to add a new variable into the config file to turn it on and off completely easily. I'll submit a patch to Oscar for doing so.

  • 4 weeks later...

 

I must be doing something wrong because my whole computer is crashing while the tiles get built. Am i suppose to delete the lines or delete the "if keep_that_one==True:" Bit underneath?

Any help is appreciated!

Tony, wouldn't it be easier to change: 

keep_that_one=False

to 

keep_that_one=True

Then the airport list is exclusive, not inclusive. By that I mean that the airports in the list will get flattened, all the others not.

  • 3 weeks later...
On 2/3/2017 at 7:48 AM, tonywob said:

I'm sure there is probably an easier way, but you can remove airport flattening completely by editing Ortho4XP.py (or Ortho4XP_development.py)

 

Find the line around 522 or so which reads:


if (wayid in dicosmw_icao):
    if (dicosmw_icao[wayid] in sloped_airports_list) or (dicosmw_icao[wayid] in do_not_flatten_these_list):
        print("          I will not flatten "+dicosmw_icao[wayid]+ " airport.")
        keep_that_one=False
               

back up the old file, and then just replace it with


keep_that_one = False

If you know Python, it would be easy enough to add a new variable into the config file to turn it on and off completely easily. I'll submit a patch to Oscar for doing so.

Hi,

I am not exactly understanding whats changing....is it the space between "one=False"?

 

Thanks.

No everything above the "keep_that_one = False" line is removed, I think.

The space around the = sign is just meaningless whitespace

Did anyone make this work and if so how? I tried removing the offending lines and regenerating a tile I'm familiar with but the runway contours are not what I'd expect. Any further guidance would be appreciated.

i7 7700k, @ 4.6Ghz. GTX1070 8Gig. 32Gigs DDR4 2400. Win 10 pro. X-Plane 11.

  • 2 months later...
On 2017-3-28 at 8:55 PM, propsfan said:

Did anyone make this work and if so how? I tried removing the offending lines and regenerating a tile I'm familiar with but the runway contours are not what I'd expect. Any further guidance would be appreciated.

Anyone?

Dave Bolton

  • 8 months later...

I would also be interested to know if we are able to have the contoured runways back in Ortho tile areas?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.