Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi All

I come up with a neat idea this afternoon, but I dont think there is anything out there that will make this possible in perl.

Basically, I have a database of clients from different countries, I want to create a perl script to generate a map with dots where we have an active client.. I'm sure I have seen something like this on perl london mailing list or something? But not sure how its done or whether it is possible in an automated way, I could sit there and create a .gif file in a graphics program, but that would be no fun and very boring! :)

Thanks

John

Replies are listed 'Best First'.
Re: Perl Map
by mpolo (Chaplain) on Feb 11, 2004 at 20:30 UTC
Re: Perl Map
by punkish (Priest) on Feb 11, 2004 at 21:53 UTC
    check out http://mapserver.gis.umn.edu/ an opensource mapping program for which I have a particular fondness. The program has a Perl/MapScript module that allows you to construct a fully capable, web mapping site. You will need geographic data for the world map background, and a table of countries with their x,y.

    Now, that is the most full-fledged solution. Whether or not you decide to use MapServer, you will need a table of countries with their x,y, and a base worldmap graphic. You could always use Imagemagick or GD to overlay a point graphic on top of the basemap graphic.

Re: Perl Map
by hossman (Prior) on Feb 11, 2004 at 22:47 UTC

    use Geo::Dymaxion

    UPDATE: I probably should have mentioned some sort of disclaimer like "this is probably not going to work on the type of US Map you are expecting ... but it does work on a a very good type of map

Re: Perl Map
by Anonymous Monk on Feb 11, 2004 at 20:09 UTC
    Im so sorry, I posted this in the wrong category!!