|
From: merspieler <mer...@al...> - 2023-12-26 14:33:14
|
I tried to write a proper patch so we treat the new line codes right
in the apt_loader...
My issue is, LOWI fresh from the gateway contains line code 105:
I
1200 Generated by WorldEditor 2.5.0a1
1 1905 0 0 LOWI Innsbruck Kranebitten
1302 city Innsbruck
1302 country Austria
1302 datum_lat 47.260277778
1302 datum_lon 11.343888889
1302 faa_code
1302 gui_label 3D
1302 iata_code INN
1302 icao_code LOWI
1302 region_code LO
1302 state Tyrol
1302 transition_alt 11000
1302 transition_level
100 45.50 1 720 0.25 1 2 0 08 47.25878342 011.33087359 103 26 3 0 0 0 26 47.26160284 011.35702552 0 29 3 1 0 0
105 0 17 0.0 0.50 0.20 0.50 0.20
But in the documentation [1] I can't find any mention of a row code 105
(only a line type code).
how would I go about this?
Keep my just warn option? Something else?
[1] https://developer.x-plane.com/article/airport-data-apt-dat-12-00-file-format-specification/
On Mon Dec 25, 2023 at 1:32 PM CET, merspieler wrote:
> One thing I've forgot: For the navdb update with the included matching
> apt.dat file to succeed, you need this little patch for fg:
>
> diff --git a/src/Airports/apt_loader.cxx b/src/Airports/apt_loader.cxx
> index 057c2bdd0..8f369f331 100644
> --- a/src/Airports/apt_loader.cxx
> +++ b/src/Airports/apt_loader.cxx
> @@ -327,7 +327,6 @@ const FGAirport* APTLoader::loadAirport(const SGPath& aptDatFile, const std::str
> string cleanedLine = cleanLine(linesIt->str);
> oss << aptDat << ":" << linesIt->number << ": unknown row code " << rowCode;
> SG_LOG(SG_GENERAL, SG_ALERT, oss.str() << " (" << cleanedLine << ")");
> - throw sg_format_exception(oss.str(), cleanedLine);
> }
> } // of loop over the second and subsequent apt.dat lines for the airport
>
> Reason is that so far we did throw an exception and thus abort loading
> the apt.dat file which has new line codes.
> This patch just ignores unknown line codes but still prints that alert
>
> On Fri Dec 22, 2023 at 12:04 AM CET, merspieler wrote:
> > Hey,
> >
> > a good while ago we wrote that we generated all airports globally for
> > use with WS3.0 but never actually published it.
> > We did that now: https://cdn.merspieler.tk/airports/
> > Download the airports.tar.gz if you wanna have everything or go manually
> > go in and pick what you like.
> >
> > Updates will run when ever I'm in the mood (or if someone kindly asks if
> > there's been an important change on an airport on the gateway)
> >
> > regards,
> >
> > Nia
> >
> >
> > _______________________________________________
> > Flightgear-devel mailing list
> > Fli...@li...
> > https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
>
>
> _______________________________________________
> Flightgear-devel mailing list
> Fli...@li...
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
|