Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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
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 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://614672]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-07-26 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls