[OZAPRS] Xastir maps... again

Andrew Rich vk4tec at tech-software.net
Tue Feb 6 21:25:42 EST 2007


of course !

-----------------------------------------
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: Tuesday, 6 February 2007 7:35 PM
To: vk4tec at tech-software.net; VK / ZL APRS Users
Subject: Re: [OZAPRS] Xastir maps... again


Right about here

> # Read in .inf file (from Ui-View)
> # Convert the lat/long coordinates into dd.dddd format
> # Get the image extents via >>>>>>"identify -ping filename"<<<<<<<<<
> # Write out the .geo file
> # Note that this program assumes (and converts to)
> # lower-case for the filename.

exactly in the place I said I didn't understand!

The "identify" routine from imagemagick is called in this line

> $string = `identify -ping $try_filename 2>/dev/null`;

hence "$string" was returned empty








Andrew Rich wrote:
> So where in the perl process does it need imagemagick ?
>
>
> -----------------------------------------
> 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: Tuesday, 6 February 2007 5:37 PM
> To: VK / ZL APRS Users; Xastir List
> Subject: Re: [OZAPRS] Xastir maps... again
>
>
> Yep,
>
> That'll be it then
>
> No ImageMagick. Installed and now all is well. I'll RTFM a little more
> carefully next time.
>
> Did a quick locate for ImageMagick and got a couple of hits so assumed
> it was installe
>
> Makes an ASS out of U and Me!!!
>
> Thank you Marcus B
>
>
> Marcus B wrote:
>> It doesn't look like this has been solved, and I had this exact
>> problem the other day.
>>
>> I solved it by installing the ImageMagick package as the script
>> requires the "identify" program (I'm glad I know perl).
>>
>> Very silly error for a required program being missing, oh well :-/
>>
>> If you have ImageMagick installed, try running the identify program by
>> itself, you should get something like this:
>>
>> [13:20:00 pts/7] mabs at whitestar:~/tmp/xastir$ identify
>> Version: ImageMagick 6.2.4 12/13/06 Q16 http://www.imagemagick.org
>> Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
>>
>> Usage: identify [options ...] file [ [options ...] file ... ]
>>
>> ..........
>>
>> On 04/02/07, Norm, VK3XCI <vk3xci at aanet.com.au> wrote:
>>> g'day all'
>>>
>>> It's VERY hot here and maybe my brain has boiled, but I can't seem to
>>> get the inf to geo script to work to change a UI-view *.inf file to a
>>> *.geo file
>>>
>>> It exits with an error
>>>
>>>> root at norm-linux:/usr/share/xastir/maps/Local#
> /usr//lib/xastir/inf2geo.pl mildura-ne250.inf
>>>> *** mildura-ne250.inf ***
>>>> Image file not found for mildura-ne250, maybe be a case problem
>>>> root at norm-linux:/usr/share/xastir/maps/Local#
>>> Now, I know the mildura-ne250.gif file is there. I have tried both
upper
>>> and lower case iterations. The script seems to dump at the
FindImageFile
>>> subroutine
>>>
>>>> sub findImageFile {
>>>>     $filename = shift;
>>>>     @extensions = ("gif", "bmp", "jpg", "png", "emf");
>>>>     foreach $xtn (@extensions) {
>>>>       $try_filename = "$filename.$xtn";
>>>> #     print "Looking for $try_filename\n";
>>>>       $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;
>>> Maybe it cant find a valid $image_size? is the .gif corrupt?
>>>
>>> Alternatively, what is the format of the .geo, maybe I can convert by
> hand?
>>>
>>>
>>>
>>>
>>>
>>> --
>>> 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
>>>
>>
>
>
> --
> 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
>
>
> _______________________________________________
> Ozaprs mailing list
> Ozaprs at aprs.net.au
> http://aprs.net.au/mailman/listinfo/ozaprs
>
>


--
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/20070206/3974f691/attachment.htm 


More information about the Ozaprs mailing list