[Xastir] Maps.
Curt Mills
archer at eskimo.com
Sat Jan 24 12:56:37 EST 2004
On Sat, 24 Jan 2004, Erik Jakobsen wrote:
> I have tried to make .geo files again, and it succeded in 2 cases:
>
>
> lajka2:/usr/local/share/xastir/maps # ls -l
> total 452
> drwxr-xr-x 4 root root 448 Jan 24 17:15 .
> drwxr-xr-x 11 root root 264 Jan 19 05:57 ..
> -rw-r--r-- 1 root root 33190 Jan 26 2000 Aalborg.gif
> -rw-r--r-- 1 root root 48 Jan 8 2000 Aalborg.inf
> -rw-r--r-- 1 root root 159691 Jan 14 2000 Danmark.gif
> -rw-r--r-- 1 root root 68 Jan 14 2000 Danmark.inf
> drwxr-xr-x 2 root root 80 Jan 22 11:12 GPS
> -rw-r--r-- 1 root root 68 Nov 30 20:01 SCANDI-S1.INF
> -rwxr-xr-x 1 root root 5364 Aug 21 20:01 inf2geo.pl
> -rw-r--r-- 1 root root 85 Jan 22 11:12 placeholder
> -rw-r--r-- 1 root root 226815 Nov 16 2001 scandi-s1.gif
> -rw-r--r-- 1 root root 13 Jan 22 11:12 terraserver.geo
> -rw-r--r-- 1 root root 10 Jan 22 11:12 tigermap.geo
> drwxr-xr-x 2 root root 240 Jan 23 18:10 tmp
> -rw-r--r-- 1 root root 12 Jan 22 11:12 toposerver.geo
Are you doing all of this as the root user? I see that everything
here is owned by root, and writable only by root as well. If you're
then trying to run the script as a normal user, they won't be able
to modify the files.
As far as case, any case will do, whether it's all small letters,
all capital letters, or any combination. You merely have to make
sure that the filename inside the .inf file matches the image
filename EXACTLY.
If so, then the script should work.
> lajka2:/usr/local/share/xastir/maps # ./inf2geo.pl Aalborg.inf
> *** Aalborg.inf ***
> Found this image: Aalborg.gif GIF 636x389+0+0 PseudoClass 256c 8-bit
> 32.4k 0.010u 0:01
>
> lajka2:/usr/local/share/xastir/maps # ./inf2geo.pl Danmark.inf
> *** Danmark.inf ***
> Found this image: Danmark.gif GIF 1539x1359+0+0 PseudoClass 256c 8-bit
> 155.9k 0.230u 0:01
> lajka2:/usr/local/share/xastir/maps # ./inf2geo.pl SCANDI-S1.INF
> *** SCANDI-S1.INF ***
> Image file not found for SCANDI-S1, maybe be a case problem
Right there it tells you that it couldn't find the filename listed
inside the .inf file. Check the spelling and case.
The script takes the first part of the filename: "SCANDI-S1", then
tries to make a .geo file called "SCANDI-S1.geo" and uses the
filename inside the .inf file to run ImageMagick's "ping" command
against in order to figure out the size of the image file. If the
filename inside the .inf file doesn't match the real gif or jpg
file, then ImageMagick won't find it, and you'll not create a valid
.geo file.
I suspect that the filename inside the .inf file does not match the
image file you have. Does it say "scandi-s1.gif" inside the .inf
file, or does it have some capital letters or a mis-spelling?
> Does the placholder, terraserver.geo, tigermap.geo and toposerver.geo
> that one can see the whole world or am I missing something ?.
Nope. Those are mostly useful inside the U.S. Check the
README.MAPS file for places to download maps. There are a lot of
choices, both in types of maps and in places to download them. I
prefer vector maps for streets/world maps, and raster files for
topographic features.
> Where can I download .goe files.
Nowhere that I know of. You can snag lots of .inf maps though and
convert them to .geo files. Once you figure out how to correct .inf
files that are wrong (like the one you have above), you'll do fine.
Files from Windows/DOS machines often have incorrect case matching,
because on those operating systems it doesn't matter and it hides
the problem. On Unix/Linux, you see the problem that exists.
--
Curt, WE7U. archer at eskimo dot com
http://www.eskimo.com/~archer
Lotto: A tax on people who are bad at math. - unknown
Windows: Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me: I picked the coordinate system!"
More information about the Xastir
mailing list