I'm not sure I am understanding exactly what you want.
You want to know how to export property data to cvs or how to get the elevation, or both?
If elevation, you must want the elevation at some distance in front of the aircraft. If that is so then I think you would have to calculate a geo-coordinant position at x-y offset from aircraft location and poll that position to get the elevation of that point or multiple points in that direction.
I'm lousy at math so I can't help with the function but there is code examples in the AirCrane cargo hauling nasal file that crudely do most everything you need. There is example of polling a geo-location, there is even a crude calculation to place an object at x distance behind the aircraft using geo coordinates.
I would imagine there is also many examples of this type of stuff in the Space Shuttle code as well, but I wouldn't have a clue as to where to look exactly.
For example getting an elevation using the geo class looks something like this...
- Code: Select all
geo.elevation(offset-lat, offset-lon);
This was a crude positioning of a model at an offset behind the aircraft's coordinates
- Code: Select all
#use to offset cargo behind aircraft
#var x = math.cos((headNode+90)*0.0174533);
#var y = math.sin((headNode+90)*0.0174533);
#y = y * -1;
#x = x * .0000239;
#y = y * .0000239;
Where headNode is the aircraft's heading. So using this as an example...
- Code: Select all
geo.elevation(x, y);
Would technically get you the elevation at some distance behind the aircraft.
I wouldn't be surprised if someone doesn't already have some custom code for one of the military aircraft applications that does what you need.
Also see:
http://wiki.flightgear.org/Nasal_library/geo