Quote:
|
Originally Posted by GeorgeTheEng
This is definitely good work and very interesting. Would you consider posting the source for this?
|
Ok. I uploaded the thing to make the usa map to
http://users.wpi.edu/~piotrm/first/maps/src/.
There are a few things this requires. One is that you have gdlib installed as well as the GD perl module. Also is required the Geo::ShapeFile perl module. One can get em off CPAN by doing this:
Code:
perl -MCPAN -eshell
** perhaps answer some questions here **
install GD
install Geo::ShapeFile
exit
Also you need to download the populated place data file from Geographic Names Information System website:
http://geonames.usgs.gov/geonames/st...op_places_deci. Watch out, it is big. Get
http://geonames.usgs.gov/geonames/st...laces_deci.zip and unzip it if you have slow internet.
Once you get that file you need to generate cities2.storable by typing:
Code:
cat Pop_places_deci | perl make_data2.pl cities2.storable
Finally you need to download the USA states shape file from the AWIPS Map Database at
http://www.nws.noaa.gov/geodata/cata...a/s_12my03.zip. Unzip it.
Now you should be ready to make a map. Do so by typing:
Code:
perl make_usa.pl 1000 map.png map_with_teams.png
That is, the first argument is the width in pixels. The second is the name of the file to write to for a map with no teams and the third argument is the name of the file where to write the image with the teams shown.
Sorry but the perl source is not very nice looking but hopefully anyone that needs to can figure out how to make the changes they want.