Manuel Bessler writes: > > $x = $w/2 + ($lon - $center_lon) * $deg_to_nm * $scale * $xfact; > > $y = $h/2 - ($lat - $center_lat) * $deg_to_nm * $scale; > > > > ($x, $y) is the coordinates (in screen space) where you should draw > > the object. > > > > This is known to work pretty well over a local area (assuming my > > typing is correct, I didn't overlook something, and you can get past > > the pseudo-perl syntax.) :-) > > Thanks, this will at least for the testing phase a good start. > I have been thinking about something like this, but the ironing out > the formulas above ... I just didon't how to put it all together. > > perl's no problem. I've did quite a bit of perl hacking some time ago.
I worked this stuff out as part of perl-tk moving map / approach deviation grapher I'm building for a side project. I hope to get authorized to release as open-source some day... been working a couple angles, we'll see... Regards, Curt. -- Curtis Olson IVLab / HumanFIRST Program FlightGear Project Twin Cities [EMAIL PROTECTED] [EMAIL PROTECTED] Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
