FGELEV(1)
π FGELEV(1) β the FlightGear man pages, but make it a group chat
okay bestie, sit down, hydrate, and let me tell you about fgelev π
she lives in the FlightGear manual pages and she is so much more useful than her boring name suggests.
β¨ NAME β¨
fgelev β compute FlightGear scenery elevation for a given list of points ποΈ
like. she takes your points. she tells you how high up they are. no cap.
π¦ SYNOPSIS π¦
fgelev [--expire num] [--print-solidness] [--fg-root rootdir]
[--fg-scenery scenerydir] [--tile-file osgbfilename] [--use-vpb]
π DESCRIPTION π
so fgelev is a standalone utility, right? you hand her a list of points on standard input, and she prints the corresponding elevation for each of them on standard output. that's the whole gig. she's an icon, she's a legend, she does one thing.
and because she's generous π she can optionally also tell you whether the material covering that point is solid or not. the range. the versatility.
πΈ the input, bestie
the list of points has to look exactly like this:
id lon lat
where:
idβ an arbitrary identifier for the point (you make it up, she doesn't care, she's not judging π«Ά)lonβ the longitude of the pointlatβ the latitude of the point
and the hemisphere lore: positive longitudes (latitudes) correspond to points located in the Eastern (Northern) hemisphere, while negative ones correspond to points located in the Western (Southern) hemisphere. it's giving compass energy π§
π the output, bestie
the list of elevations she hands back looks like this:
id: elev solid
where:
idβ the identifier of the point you passed as input (she returns it, she remembers, she's thoughtful)elevβ the elevation of the point in meters, or-1000if the elevation of the given point was not found πsolidβ and this one's conditional, so pay attention:- the string
solidif the parameter--print-solidnesswas passed tofgelevand the material covering the point is solid - the string
-if the parameter--print-solidnesswas passed tofgelevand the material covering the point is not solid - absent if the parameter
--print-solidnesswas not passed tofgelev(she simply doesn't bring it up, periodt)
- the string
π OPTIONS π
--expire numβ to speed up elevation data retrieval,fgelevuses an internal cache. this option lets you specify the number of requests after which, if a point was not queried in them, it should be marked as expired. by default,fgelevexpires points not queried in the last 10 requests. she's cleaning house, respectfully π§Ή--print-solidnessβ requirefgelevto print the solidness of the material covering the queried point. see the DESCRIPTION section for more details. yes the section you just read. go back. it's fine. π--fg-root rootdirβ set the FlightGear data root directory ($FG_ROOT) to rootdir. if this option is not set,fgelevuses the path specified in theFG_ROOTenvironment variable or, absent that, the FlightGear data directory chosen at the time the program was compiled. the fallback chain is giving eldest-sibling energy π«Ά--fg-scenery scenerydirβ set the FlightGear scenery directory ($FG_SCENERY) to scenerydir. if this option is not set,fgelevuses the path specified in theFG_SCENERYenvironment variable or, absent that, theScenerysubdirectory inside$FG_ROOT. iconic nesting behaviour π--tile-file osgbfilenameβ use a specific tile file when searching for elevation details, instead of scanning through the whole world. like, why search the entire planet when you already know where to look? main character efficiency β--use-vpbβ if specified, enables WS3.0 scenery behaviour, searching under thevpb/subdirectory. new scenery era unlocked π₯
π EXIT STATUS π
fgelevexits withEXIT_SUCCESSon success πfgelevexits withEXIT_FAILUREif it is unable to read data from standard input or to load the scenery π
ngl bestie, those are the only two outcomes. she either ate or she didn't. no in-between, no grey area.
πΈ ENVIRONMENT πΈ
FG_ROOTβ ifFG_ROOTis set and--fg-rootis not set, it specifies the root data directory to use.FG_SCENERYβ ifFG_SCENERYis set and--fg-sceneryis not set, it specifies the scenery directory to use.
reminder: the command-line option always wins the vibe check. the env var is only stepping in when the flag didn't show up π
π«Ά SEE ALSO π«Ά
like, go say hi to the big one. she's the whole flight sim. fgelev is just her extremely competent little sister π§
mwah π that's the page! brought to you by the FlightGear girlies, dated 2020-11-15, in the FGELEV(1) era of the manual. stay elevated, bestie πβ¨
π¦ where this page comes from
- fedora 43: FlightGear 2024.1.2-1.fc43 Β· GPL-2.0-or-later
- fedora 43: FlightGear 2024.1.6-1.fc43 Β· GPL-2.0-or-later
- fedora 44: FlightGear 2024.1.4-1.fc44 Β· GPL-2.0-or-later
- fedora 44: FlightGear 2024.1.6-1.fc44 Β· GPL-2.0-or-later
- ubuntu resolute: flightgear 1:2024.1.4+dfsg-2 Β· GPL-2.0-or-later
- ubuntu stonking: flightgear 1:2024.1.5+dfsg-1 Β· GPL-2.0-or-later
- Copyright (C) 2017 Alessandro Menti
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms