[OZAPRS] Xastir maps... again
Norm, VK3XCI
vk3xci at aanet.com.au
Sun Feb 4 20:33:53 EST 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://second.aprs.net.au/pipermail/ozaprs/attachments/20070204/246f7ab4/attachment.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mildura-ne250inf.txt
Url: http://second.aprs.net.au/pipermail/ozaprs/attachments/20070204/246f7ab4/attachment.txt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT10440.txt
Url: http://second.aprs.net.au/pipermail/ozaprs/attachments/20070204/246f7ab4/attachment-0001.txt
More information about the Ozaprs
mailing list