From: "Ampere K. Hardraade" <[EMAIL PROTECTED]>
On January 13, 2006 07:21 pm, Paul Surgeon wrote:
> How do you plan to make sure the airport layout is rotated and
positioned
> accurately so that things like ILS equipment isn't off to one side or at
> the wrong angle to runways?
> If you're 10 meters off you're not going to be landing on the centerline
> anymore.
>
> How about a way to pick the points at the end of each runway and set
them
> as ground control points which get tied to the values in the apt.dat
file?
> It's easy to calculate the end points of the runways from the apt.dat
data.
> Then the model get's rotated and stretched accordingly much like
> georeferencing imagery in the GIS world.
>
> Paul
The process is trivial.
In each file, there are lines that represent latitude and longitude.
http://204.108.4.16/d-tpp/0513/00375AD.PDF
The user would first use a program like Inkscape to rename at least four of
those lines to the latitude and longitude that they represent. Then,
he/she
would use a custom program to generate a new SVG file that have all the
vertices of the airport in their proper location. (Alternately we could
integrate this "program" into FG, so that the users don't have to go
through
an extra step.)
The program would recongize those latitude and longitude lines by their id
field. The correct coordinates of a vertex in the SVG file could then be
computed by finding the shortest-distance between that vertex and the
latitude/longitude lines. It is simple algebra, but we need someone to
code
it.
Ampere
Hi,
Is the lat and long for the vertices concerned known?
if so I have the great circle formula for shortest distance between known
points, presently coded in VB but the level of commenting is such that a c++
newbie could convert it (I think) <g>
is this of any help or am i "teaching my grandmother how to suck eggs"?
Cheers
Dene
_________________________________________________________________
Check out the latest video @ http://xtra.co.nz/streaming
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel