File:USA counties FIPS text addressable.svg
From Wikimedia Commons, the free media repository
USA_counties_FIPS_text_addressable.svg (SVG file, nominally 555 × 352 pixels, file size: 1.34 MB)
[edit] Summary
| Description |
English: Blank U.S. map with counties labeled by FIPS code. These can be colored by editing the document as text and adding FIPS codes, followed by a fill color for each group. This file is based on the public domain tagged file:USA Counties with FIPS and names.svg, which I processed by a simple Perl script to add class tags and from which I also removed a few small errors and inconsistent formatting.
Although I don't foresee any further need for processing, I should point out that the size of the file is such that even simple changes require a program to be run. Perl is freely downloaded and can run as a standalone (ActivePerl) or under Cygwin. The script I ran was not exactly rocket science, but I'll post it hopefully to embolden anyone who sees a need for further modification of the file. The following is the entire program, which processed the file in about two seconds:
use integer;
use strict;
use warnings;
# Open files
open (OLD, "< input.txt" ) || die ("no input?");
open (NEW, "> output.txt" ) || die ("Couldn't open output file: $!");
my (@a, $code, $class, $tmp);
while (<OLD>)
{
push @a,$_;
if (/(\d\d\d\d\d)/) {$code=$1};
if (/class/) {$class=@a};
if (/path/)
{
if ($class) {$a[$class-1]=(' class="land s' . $code . '"'."\n")} else {print "no class: $code"};
while ($tmp=shift(@a)) {print NEW $tmp};
}
};
|
| Date | 19 May 2009 |
| Source | Own work |
| Author | Mike Serfas |
| Other versions |
Derivative works of this file: |
I'll add a
| I, the copyright holder of this work, release this work into the public domain. This applies worldwide. In some countries this may not be legally possible; if so: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
|
to keep the ball rolling.
[edit] Licensing
|
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 01:50, 20 May 2009 | 555 × 352 (1.34 MB) | Mike Serfas (talk | contribs) | {{Information |Description={{en|1=Blank U.S. map with counties labeled by FIPS code. These can be colored by editing the document as text and adding FIPS codes, followed by a fill color for each group. This file is based on the public domain tagged [[:f |
- Edit this file using an external application (See the setup instructions for more information)
File usage on Commons
The following 2 pages link to this file: