Go to Post A lot of people forget this when posting, but your posts here on ChiefDelphi will more or less be here forever. Do you really want that post you just be made to be on the Internet forever?... Post wisely... - artdutra04 [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #17   Spotlight this post!  
Unread 23-06-2004, 13:42
piotrm's Avatar
piotrm piotrm is offline
Registered User
AKA: Piotr Mardziel
FRC #0190 (Gompei and the HERD)
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Dudley, MA
Posts: 96
piotrm has a spectacular aura aboutpiotrm has a spectacular aura about
Send a message via AIM to piotrm
Re: pic: USA Teams

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.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding new teams Kit Gerhart Finding A Team 8 13-04-2004 12:05
The top 8 teams will be....(2004) Jessica Boucher General Forum 20 24-03-2004 22:31
More teams in the elimination rounds DougHogg General Forum 16 27-04-2003 16:11
pic: Curie Finals- the three leaders of the NJ regional teams CD47-Bot Extra Discussion 2 14-04-2003 22:56
Long post - this year's game was tough - here's why: archiver 2001 7 24-06-2002 03:31


All times are GMT -5. The time now is 13:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi