[OZAPRS] Xastir maps... again

Andrew Rich vk4tec at tech-software.net
Sun Feb 4 22:26:15 EST 2007


linux:/usr/local/share/xastir/maps # more mildura-ne250.inf
34.00.00S, 142.00.00E
34.30.00S, 142.30.00E
Greater Mildura NE 1:250000

linux:/usr/local/share/xastir/maps # ./inf2geo.pl mildura-ne250.inf
*** mildura-ne250.inf ***
Found this image: mildura-ne250.gif GIF 1144x1386 1144x1386+0+0
PseudoClass
256c 843kb 0.290u 0:02

linux:/usr/local/share/xastir/maps # ll mil*
-rw-r--r--  1 root    root     183 Feb  4 21:24 mildura-ne250.geo
-rwxr--r--  1 c880105 users 863250 Mar  4  2006 mildura-ne250.gif
-rwxr--r--  1 c880105 users     75 Mar  4  2006 mildura-ne250.inf

linux:/usr/local/share/xastir/maps # more mildura-ne250.geo
FILENAME    mildura-ne250.gif
TIEPOINT    0           0       142     -34
TIEPOINT    1143        1385    142.5   -34.5
IMAGESIZE   1144        1386
#1144x1386
#
# Converted from a .INF file by WE7U's inf2geo.pl script
#

-----------------------------------------
Andrew Rich
Amateur radio callsign VK4TEC
email: vk4tec at tech-software.net <mailto:vk4tec at tech-software.net>
web: http://www.tech-software.net
Brisbane AUSTRALIA



-----Original Message-----
From: Norm, VK3XCI [mailto:vk3xci at aanet.com.au]
Sent: Sunday, 4 February 2007 7:34 PM
To: vk4tec at tech-software.net; VK / ZL APRS Users
Subject: Re: [OZAPRS] Xastir maps... again


Andrew Rich wrote:
> Try this
>
> File not found is one of two things: permissions or path
>
>
> 1. copy /usr/lib/xastir/inf2geo.pl /usr/share/xastir/maps/Local
> 2. cd /usr/share/xastir/maps/Local
> 3. chmod 777 mildura*.*
> 4. ./inf2geo.pl mildura-ne250.inf
>
> Send me your mildura-ne250.inf
>
>
>
> _______________________________________________
> Ozaprs mailing list
> Ozaprs at aprs.net.au
> http://aprs.net.au/mailman/listinfo/ozaprs
>
>


OK,
tried it all again. but still no joy.
I had already put the script into the ..maps/Local directory but hadn't
changed the permissions so I did that. No go.

Had a CLOSE look at the script, but I'm no Perl programmer I can tel you.

There  was a print line commented out which would give me a clue how far
the script was getting

>> sub findImageFile {
>>     $filename = shift;
>>     @extensions = ("gif", "bmp", "jpg", "png", "emf");
>>     foreach $xtn (@extensions) {
>> 	$try_filename = "$filename.$xtn";
>> 	print "Looking for $try_filename\n";		<--UNCOMMENTED
THIS
>> 	$string = `identify -ping $try_filename 2>/dev/null`;
>> 	if ($string ne "") {
>> 	    $filename = $try_filename;
>> 	    $image_size = $string;
>> 	}
>>     }
>>     if ($image_size eq "") {
>> 	print "Image file not found for $filename, maybe be a case
problem\n" ;
>> 	return;
>>     }
>>
>>     print "Found this image: $image_size\n";
>>     return ($filename, $image_size);

Run it

> root at norm-linux:/usr/share/xastir/maps/Local# ./inf2geo.pl
mildura-ne250.inf
> *** mildura-ne250.inf ***
> Looking for mildura-ne250.gif
> Looking for mildura-ne250.bmp
> Looking for mildura-ne250.jpg
> Looking for mildura-ne250.png
> Looking for mildura-ne250.emf
> Image file not found for mildura-ne250, maybe be a case problem
> root at norm-linux:/usr/share/xastir/maps/Local#

So it gets to the Print "Looking for $try_filename\n";
Not sure what the next line does but somehow I think the
  > if ($string ne "") fails.


Attached is the .inf in question.

Had to resend, koala didn't like the .inf extension!


--
de VK3XCI
Norm in Mildura, QF15bt
Australia's Wintersun City


_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://second.aprs.net.au/pipermail/ozaprs/attachments/20070204/ec8b6bf1/attachment.htm 


More information about the Ozaprs mailing list