I am trying to integrate a moving map display into my TSR2 project cockpit and
decided that a stripped down version of the ZKV1000 code would be a starting
point.
ZK1000 derives its maps from the Atlas maps using the above perl script.
After a fight I got it to run using the command line perl buildmaps.pl
c:\flightgear\atlasmaps.
Here are the bugs that I have encountered:-
1. At line 22 I had to change
if ($OS eq 'Windows_NT') {
$originalMapsDir =~ s:\\:/:g;
@originalTiles = glob("\"$originalMapsDir/*.$imageFormat\"");
to
if ($OS eq 'Windows_NT') {
$originalMapsDir =~ s:\\:/:g;
@originalTiles = <$originalMapsDir/*.$imageFormat>;
as “glob” did not work.
2. The “mkdir” at line 34 also did nothing, so I created the new folders myself.
3. The program then ran, but the images are confused. An example is at
http://v-twin.dynip.sapo.pt/alan/VickersAircaft/TSR2/maps/e000n51.png showing
London and the Thames estuary. The image is split into 3 vertical bands.
4. No documentation, so reverse engineering was needed to do everything. That
seems to be the norm on FG ;-( , so I can´t complain about that.
I am using Windows7, 64 bits, and recent versions of Active Perl and
ImageMagick.
Finally a question, where is the origin point of each Atlas and ZKV1000 tile
image?
Alan
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel