* Melchior FRANZ -- 11/1/2008 9:07 AM:
> * Ralf Gerlich -- 10/30/2008 8:06 PM:
> > These files are found in a three-level directory structure (poor
> > man's index). The files for KSFO are for example found in
> > Airports/K/S/F/KSFO.*.xml
> 
> I have a slight preference for  Airports/K/KS/KSF/KSFO.*.xml.

Bah! Screw easier navigation! Nothing that a "pwd" can't solve.
I have now a strong preference for this:

  Airports/K/S/F/O/{parking,tower,threshold,whatever}.xml


Please not "twr.xml"! We can really be generous and spend two
vowels. And let's not throw KSFO and KSFX (or whatever) together,
with more encoding in the file name. They have no relation apart
from the first three letters. Another dir level should be cheap,
and the directory is far nicer to assemble that way:

  var root = string.normpath(getprop("/sim/fg-root")) ~ "/Airports/";
  var dir = root ~ string.join('/', split('', icao)) ~ '/';
  var tower = io.read_properties(dir ~ "tower.xml");

  debug.tree(tower);


The question is, however, if we don't want to put all airport
data into one file, in which case the fourth dir level would
be superfluous.

m. 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users

Reply via email to