Board index FlightGear Development Scenery

TerraSync and local objects

Questions and discussion about enhancing and populating the FlightGear world.

Re: TerraSync and local objects

Postby TheEagle » Fri Aug 12, 2022 1:33 pm

No - you can't. Or you can, but then you'll get one big STG file out of it, not one output file for every input file.

Try my script at https://github.com/TheFGFSEagle/fgtools ... dit-stg.py instead - just give it your Objects/ directory as input with -i / --input, and let it do the rest. You also need to give it the location of your scenery / multiple paths separated by your OS's pathsep (: on Linux, I always give it first my custom scenery, then TerraSync) with -s / --fgscenery, and the path to your FGDATA folder with -d / --fgdata. Additionally, if your fgelev executable is not in a folder present in the PATH environment variable / or not named fgelev, give the script the name of / full path to fgelev with -e / --fgelev. I'm 90% sure it works, but there's a 10% chance it might throw some SyntaxError or something like that because I didn't use it in a while but changed a few things ! :wink:
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: TerraSync and local objects

Postby dom_vc10 » Fri Aug 12, 2022 1:40 pm

Thanks a lot. All the OSM roads need adjusting so will try it on them.
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: TerraSync and local objects

Postby TheEagle » Fri Aug 12, 2022 1:59 pm

Wait a second, please. This script must ONLY be run on the Objects folder, NOT on the OSM2City output - that must be completely regenerated from scratch, because OSM2City.py puts many buildings into one AC file - trust me, I tried it, it just won't work.

So, you need to regenerate the buildings, roads and pylons with OSM2City, for which I recommend merspieler's easy-osm2city scripts - using OSM2City directly is quite tricky (at least, I couldn't get it to even run at all), but with those scripts, it's really simple ! :) What you also need is the .osm.pbf file for your area - you can get those from GeoFabrik in the same place as the shapefiles.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: TerraSync and local objects

Postby dom_vc10 » Fri Aug 12, 2022 2:05 pm

I was not going to run it on the buildings just roads. So the elevation data in the OSM stg files cannot just be updated? it's only out by a small amount in some places.

I will take a look at the scripts from merspieler then. thanks for the tip
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: TerraSync and local objects

Postby TheEagle » Fri Aug 12, 2022 2:13 pm

Yeah, its the same thing for the roads. The script can only move the whole AC files up or down - which means, entire villages, so to speak. If everything is, say, 1 meter too high - then try it. But if only some parts are out of place, that won't be corrected by this script.
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Re: TerraSync and local objects

Postby dom_vc10 » Fri Aug 12, 2022 2:49 pm

Makes sense. Would be good actually I can maybe exclude some buildings for airports where I have custom objects.
I tool a look at the link for merspieler's easy OSM scripts. I will probably try them they really do look quite easy. Just didn't see if you can select a region i.e specific tile coverage based on the pbf data or it's just by the pbf file? Something I guess I can find out :lol:

Thank you
dom_vc10
 
Posts: 339
Joined: Mon Jul 27, 2020 8:33 am
Location: CZ - LKTB
Version: nightly
OS: Linux Mint 20.2

Re: TerraSync and local objects

Postby TheEagle » Fri Aug 12, 2022 3:01 pm

Just follow the Usage/Getting started section of the README.md, and you'll discover where you can define your area ! ;)
Cessna 210 (Wiki)
My other aircraft: my wiki profile !
Other: FGTools (GitHub)
World tour: View on SkyVector
Please consider donating $1 / €1 to help me finance a new camera !
User avatar
TheEagle
 
Posts: 3411
Joined: Sat May 01, 2021 3:27 pm
Location: France
Pronouns: You, he
Callsign: F-EAGLE
IRC name: none
Version: Git next
OS: Ubuntu Studio 22.04

Previous

Return to Scenery

Who is online

Users browsing this forum: No registered users and 5 guests