Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Using GIS/Shapefiles with Perl Tk Widgets

by deadpickle (Pilgrim)
on May 10, 2007 at 16:03 UTC ( #614672=perlquestion: print w/replies, xml ) Need Help??
deadpickle has asked for the wisdom of the Perl Monks concerning the following question:

I had an idea the other day and was wondering if anyone has tried this before. I want to build a GUI that displays a map of roads using shapefiles. on this I want to display GPS locating on a plane. Anyone have any ideas on how this could be done? I was thinking of using Canvas with other modules, but I dont know. Any ideas?
  • Comment on Using GIS/Shapefiles with Perl Tk Widgets

Replies are listed 'Best First'.
Re: Using GIS/Shapefiles with Perl Tk Widgets
by Albannach (Prior) on May 10, 2007 at 16:33 UTC
    I've used Tk::WorldCanvas and Geo::Coordinates::UTM to build GPS-based mapping tools in the past. Though I haven't gotten around to incorporating shapefiles, I don't imagine it would be too difficult.

    I'd like to be able to assign to an luser

      Could you give me an example on how to use these two modules, I cant seem to get anything going with them.
Re: Using GIS/Shapefiles with Perl Tk Widgets
by zentara (Archbishop) on May 10, 2007 at 17:15 UTC
    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
      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, 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 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://614672]
Approved by Old_Gray_Bear
[james28909]: how can i write a while loop on one line (in a script) something like print "this\n" && print "that" && <DATA> && print the other\n" && next if /this matches/ while <DATA>?
[james28909]: i have tried with && and and and have tried to rearrange the functions as well to no avail
[shmem]: use parens to group expressions
[shmem]: you can't use next in a statement modifier
[shmem]: next requires a BLOCK

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-05-20 18:44 GMT
Find Nodes?
    Voting Booth?