File talk:Colorado counties until November 15, 2001.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Instructions[edit]

Here are detailed instructions on how to recreate this image. The co2000p020.tar.gz archive contains four files, including co2000p020.dbf, a DBASE file. I used dbfdump to convert that to text to learn which of the shapes were Colorado counties. I put the numbers in colorado-county-nums, and the names in colorado-county-names. (Note, the numbers were 2-based in the DBF file, so I subtracted 1 from each of them!) Then I ran

 shpdump co2000p020.shp |
    proj +ellps=GRS80 +proj=aeqd +lat_0=39.1333 +lon_0=-105.7167 +units=km -f '%.2f' |
    sed "s/^[[:digit:]]*\.[[:digit:]]*.[[:digit:]]*\.[[:digit:]]*\(type\|polygon\|line\|part$\)/\1/" |
    selectshapes colorado-county-nums > colorado.data;
 procshape colorado.data colorado-county-names > colorado-counties.svg

proj is part of the proj-4.4.9 package.

In order to make the state outline thicker, I also used the state boundaries data file, statesp020.tar.gz (selecting shape 1769).

dbenbenn | talk 01:16, 28 October 2005 (UTC)[reply]