in reply to Using GIS/Shapefiles with Perl Tk Widgets

Have you googled for Perl Tk GPS There is some stuff out there. I would think the big problem would be to stitch the edges of the underlying image containing the road info together to make it seamless.

I also would consider using Tk::Zinc instead of the Canvas, since it makes rotations and zooming easier. Zinc is used primarily for Air Traffic Control so I would "assume" it lends itself to using GPS. You might want to ask on the Zinc maillist.

Just for fun, I started something like this, see Tk Zinc Drone plane control. It dosn't have road maps and GPS..... all I need is some funding. :-) But I'll bet Northrup has beat me to the money. :-) See UAV's


I'm not really a human, but I play one on earth. Cogito ergo sum a bum
  • Comment on Re: Using GIS/Shapefiles with Perl Tk Widgets

Replies are listed 'Best First'.
Re^2: Using GIS/Shapefiles with Perl Tk Widgets
by deadpickle (Pilgrim) on May 12, 2007 at 17:38 UTC
    I cant get TkZinc to install correctly, I keep getting this error:
    deadpickle@HoboHotel:~/Desktop/Tkzinc$ ./configure --enable-gl=yes checking for correct TEA configuration... ok (TEA 3.5) checking for Tcl configuration... configure: WARNING: Can't find Tcl c +onfiguration definitions
      How are you trying install it? From the module on CPAN, the downloadable tarball from TkZinc.org, or an RPM for some specific distribution? Zinc was originally made for TCL, but has been ported to Perl. If you use the module from CPAN, it should work. The tarball from TkZinc.org is designed for TCL and has a special subdir for building the Perl/Tk version.... read the README that is in the Perl subdir, run export2cpan, then build according to instructions.

      I'm not really a human, but I play one on earth. Cogito ergo sum a bum
        I am trying to install the CPAN module and am getting this error when make install:
        deadpickle@HoboHotel:~/Desktop/tk-zinc-3.303$ sudo make install Password: make[1]: Entering directory `/home/deadpickle/Desktop/tk-zinc-3.303/de +mos' make[1]: Leaving directory `/home/deadpickle/Desktop/tk-zinc-3.303/dem +os' cc -c -I. -I/usr/lib/perl5/Tk -I/usr/lib/perl5/Tk/pTk -I/usr/lib/perl +5/Tk/X11 -I/usr/X11R6/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HA +VE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_L +ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"3.303\" -DXS +_VERSION=\"804.027\" -fPIC "-I/usr/lib/perl/5.8/CORE" -DPTK -DGL -DS +HAPE -DATC Tabular.c In file included from Tabular.c:19: Types.h:41:24: error: GL/glx.h: No such file or directory In file included from PostScript.h:27, from Item.h:23, from WidgetInfo.h:23, from Tabular.c:20: Image.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ be +fore ‘ZnImageTex’ Image.h:49: error: expected specifier-qualifier-list before ‘GLfloat’ Image.h:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ be +fore ‘ZnTexFontTex’ In file included from Tabular.c:23: tkZinc.h:27:20: error: GL/glu.h: No such file or directory In file included from Tabular.c:23: tkZinc.h:63: error: expected specifier-qualifier-list before ‘GLUtesse +lator’ tkZinc.h:76: error: expected specifier-qualifier-list before ‘GLXConte +xt’ make: *** [Tabular.o] Error 1
        And I get this error when I try to run a program involving Zinc:
        Tk::Zinc object version 800.025 does not match bootstrap parameter 804 +.027 at /usr/lib/perl/5.8/DynaLoader.pm line 245. Compilation failed in require at TripleRotatingWheel.pl line 9. BEGIN failed--compilation aborted at TripleRotatingWheel.pl line 9.