[OZAPRS] Xastir maps... again
    Andrew Rich 
    vk4tec at tech-software.net
       
    Sun Feb  4 20:46:29 EST 2007
    
    
  
What is the case of the gif file ?
is it .gif or .GIF ?
It matters in LINUX
-----------------------------------------
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/5b927124/attachment.htm 
    
    
More information about the Ozaprs
mailing list