Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

2011-09-17 Thread Alan Teeder
I seem to have found the culprit.

There are two Atlas distributions.

I was using the one from 
http://atlas.sourceforge.net/index.php?page=download.

There is a modified one in CVS and from 
http://www.geoffmclane.com/fg/atlas-07.htm

The second works with buildmap.pl.  The first one has the vertical band 
faults that I described.

I am using the prebuilt Alas from the second site, as the Atlas build 
process seems broken (for me at least) at the moment.

Alan

-Original Message- 
From: Sébastien MARQUE
Sent: Friday, September 16, 2011 6:16 PM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

Hi Allan,

I think I got the clue for the confused images, can you give
./buildmaps.pl a new try?

https://gitorious.org/zakharov/zkv1000/blobs/master/Systems/buildmaps.pl

the mismatching tiles effect was due to already existing tiles. Thanks
for your report.

Regards
seb


Le 13/09/2011 20:38, Alan Teeder a ecrit :
 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.

snip

 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


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel 


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

2011-09-16 Thread Sébastien MARQUE
Hi Allan,

I think I got the clue for the confused images, can you give 
./buildmaps.pl a new try?

https://gitorious.org/zakharov/zkv1000/blobs/master/Systems/buildmaps.pl

the mismatching tiles effect was due to already existing tiles. Thanks 
for your report.

Regards
seb


Le 13/09/2011 20:38, Alan Teeder a ecrit :
 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.

snip

 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


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

2011-09-16 Thread Alan Teeder
Sorry Sébastien, but the images still have the 3 vertical bands.
I have tried with 512x512 and with 1024x1024 Atlas maps.

merda - as they say here in Portugal.  ;-

Alan

-Original Message- 
From: Sébastien MARQUE
Sent: Friday, September 16, 2011 6:16 PM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

Hi Allan,

I think I got the clue for the confused images, can you give
./buildmaps.pl a new try?

https://gitorious.org/zakharov/zkv1000/blobs/master/Systems/buildmaps.pl

the mismatching tiles effect was due to already existing tiles. Thanks
for your report.

Regards
seb


Le 13/09/2011 20:38, Alan Teeder a ecrit :
 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.

snip

 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


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel 


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

2011-09-14 Thread Alan Teeder
Sébastien

Thanks for the quick response. I have done a git pull and am pleased to 
report that the glob and mkdir errors have now disappeared. .-)

However I am still left with the three vertical bands as shown in my 
previous post. 
(http://v-twin.dynip.sapo.pt/alan/VickersAircaft/TSR2/maps/e000n51.png)  :-(

My atlas maps were built as 1024x1024 images if that is any help.

On ZKV1000 and Atlas tiles,  e.g. the e000n51.png as above, do you know what 
are the pixel coordinates of the reference point  ( i.e. e000n51) and what 
are the tile coverages?

Alan


-Original Message- 
From: Sébastien MARQUE
Sent: Wednesday, September 14, 2011 7:39 PM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

Hi Alan,

I'm the author of buildmap.pl script. Hope not being too late.

I've no windows box here, but I had a WinXP on a virtual machine, which
I've used to test the script (not have it anymore though). AFAIR it
worked quite well on the VM but it was a long time ago and I don't
remeber if my tests included the directories creation (mkdir) :/. The
only problem I remember was to find matching imagemagick and perl
versions for my XP platform.

I've just checked here on my linux box (perl 5.12 perlmagick 8:6.6.9.7)
with sceneries from my computer, and images built from atlas/cvs on
dated 2010-09-28 (ouch... old), everything seems to be OK, correct
images have been created.

Sure the script does not embed any documentation at all. I know this is
a pity, indeed the script do nothing very complicated, and it was not
dedicated to be published before being cleaned and commented. No
interface neither help is provided yet...

BTW have you checked the last available version:
https://gitorious.org/zakharov/zkv1000/blobs/master/Systems/buildmaps.pl
? (I've just pushed last changes from 3 monthes ago before writing this
mail)

Do not hesitate to ask about zkv1000, this project is very calm these
last days^Wweeks^Wmonthes... but not dead! :)

Best regards
seb

Le 13/09/2011 20:38, Alan Teeder a écrit :
 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



 --
 BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
 Learn about the latest advances in developing for the
 BlackBerryreg; mobile platform with sessions, labs  more.
 See new tools and technologies. Register for BlackBerryreg; 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

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerryreg; mobile platform with sessions, labs  more.
See new tools and technologies. Register for BlackBerryreg; 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 


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerryreg; mobile platform with sessions, labs  more.
See new tools and technologies. Register for BlackBerryreg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https

Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

2011-09-14 Thread Alan Teeder
Sébastien

Our posts have overlapped. These are now OK, but I still have the vertical 
bands.

Thanks

Alan

-Original Message- 
From: Sébastien MARQUE
Sent: Wednesday, September 14, 2011 8:04 PM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] ZKV1000 buildmaps.pl on Windows 7

Le 13/09/2011 20:38, Alan Teeder a ecrit :

 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.


These two points should be corrected now, please check on gitorious
repo:
https://gitorious.org/zakharov/zkv1000/blobs/master/Systems/buildmaps.pl

Regards
seb

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerryreg; mobile platform with sessions, labs  more.
See new tools and technologies. Register for BlackBerryreg; 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 


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerryreg; mobile platform with sessions, labs  more.
See new tools and technologies. Register for BlackBerryreg; 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