[GRASSLIST:249] FlightGear & GRASS

I plan to use GRASS and FlightGear (the flight simulator)
side-by-side, to fly over my data. Anyone tried this? Any suggestions?

FlightGear will write current position in Garmin and NMEA formats (GPS)
both to a file and to a socket. If I can read the socket with GRASS, I
could display current position+data on GRASS iin near-real-time. HOw can
a read a unix(linux) socket?

TIA.

-Gustavo
--

Clave pública GPG para gacp / GPG public key for gacp:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.7 (GNU/Linux)

mQGiBD5c/XARBADRrT8X4B3lH+nRlTZz96Qrg7DBiIIOXvVKcUQZN5Mf1g60a8Sq
14NK6w+nL/CHWwV8Ebl0lS5mQBAkvCk6bEpU0TYVEqkX2x0c0WNwGD2qY3XIegrO
AziTOs+a0ttJnh9pDFSWtb5kg1OZSZ9HzuS67zOWhlMn2O/kmoCs8LFLCwCgxpwD
I2uKF8GdvNWuCT91TR27MkED/A2MPecRNydFJIaAFmAnCOLrzmvjTU0tXDsNoui0
kyVOzodDkPIJN/HNco1eF0uomHNpHHEqFXszk7+B2wQ6r+3xdI9RKBRQcoDO2+5T
5hMJdZZme3GnyzAAHeojevNCm79IyT4Oqt5hTnFjB8iF/islD62UROVqnW1TcMRP
5ZU5A/0ccjpac8VD4doM+Yj/lmf15UfJI7R5JTdh1Rg2HyptxMeUX+vJiacjwUR8
Z1L2vxBqlZfW5PMw6y+ZAc7go39FKSclcI0L6BAyg6SP5l/M9mbncYMSdG/ZDZiW
lcTVGU8usfnmp36gFDP+0AKHIa8by31UOZ6UHyZr3gyfWUpYN7RBR3VzdGF2byBB
bGNpZGVzIENvbmNoZWlybyBQw6lyZXogKGdhY3ApIDxnYWNwQGQta29uc3RydWt0
b3JzLm9yZz6IWQQTEQIAGQUCPlz9cAQLBwMCAxUCAwMWAgECHgECF4AACgkQ68B5
f74Je7XCaQCfSKAhuF9rHRxG5GryI9+6dWTpX2gAoJuMr7TcYFIPQUgwP82A/EqQ
uvLguQENBD5c/XcQBAC7NVeTaQTe1T3Td/aBuX/YytJtveddXeOTmtx/wPbDceSQ
PCFQoQ8KtO8a+WjkVjAJwTDcaDP7xc9NpfEuKy+DttXEa3l0rJUJ46aJo6mkQ7xY
dk1jtD/El2ETZbVhER55LJYnEC7LnNTpbfyl1yh5RXbtP6SGk6hZv1P5rLh6EwAD
BQP/ZdGyA6EI14R91g3/QLJArIa0+lKUlsylQeO2RHJa4wfy2krY98rOjYeAX4Pn
o3K2py3FkVCCgWf4CPHPd7AHrs9ZmaggUNDUSLR6oi1Lol6PfseYGisQv4WPjn5u
AcEn2lO+FROXPJ7KVARJYqOjRTQwE3ZvwBzJJ0R82/QY3MiIRgQYEQIABgUCPlz9
dwAKCRDrwHl/vgl7tbNbAKC05KLNGx5fUiuONE51l4I30lYxmACbBVBpFRcmhRWU
npjTizDAhO9/uNM=
=AuyO
-----END PGP PUBLIC KEY BLOCK-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

# Sets domain part of From: and local addresses in outgoing mail. wrote:

I plan to use GRASS and FlightGear (the flight simulator)
side-by-side, to fly over my data. Anyone tried this? Any suggestions?

Note that there is already an application that does this, using the
terrain data Flightgear has, namely Atlas (IIRC you can find it at
http://atlas.sourceforge.net).

gpsdrive can also do similar things, but is targetted more at driving.

FlightGear will write current position in Garmin and NMEA formats (GPS)
both to a file and to a socket. If I can read the socket with GRASS, I
could display current position+data on GRASS iin near-real-time. HOw can
a read a unix(linux) socket?

Using bash(1), or perl, or c etc.

BTW, I still think some better gps integation in grass would be nice,
but it's not necessary for what you want (I think).

Regards,
Buchan

(1)
For example, using a gpsd-type program such as distributed with gps3d:
$ less < /dev/tcp/localhost/2222

- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+12XVrJK6UGDSBKcRAkSwAKDGulyDegcCcfZc+bRYUx/0VqvPaACeLE/f
8kzyv4xfw0rr4XCHvzgwTxc=
=INHr
-----END PGP SIGNATURE-----

******************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer.
******************************************************************