Skip to content

Instantly share code, notes, and snippets.

@rajinwonderland
Last active October 7, 2023 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajinwonderland/7317e646e055aa98c892c5bd431d4df3 to your computer and use it in GitHub Desktop.
Save rajinwonderland/7317e646e055aa98c892c5bd431d4df3 to your computer and use it in GitHub Desktop.
US State Bounding Boxes

US State Bounding Boxes

The following are the extents of each US state and territory in NAD83 (EPSG:4269) and WGS84 (EPSG:4326) coordinates using the 2017 US Census 1:500,000 shapefile.

The tranformer.py file is a Python script that uses the pyproj library to transform the NAD83 coordinates to WGS84.

NAD83 EPSG:4269

STATEFP STUSPS NAME xmin ymin xmax ymax
01 AL Alabama -88.473227 30.223334 -84.88908 35.008028
02 AK Alaska -179.148909 51.214183 -129.9795 71.365162
60 AS American Samoa -171.089874 -14.548699 -168.1433 -11.046934
04 AZ Arizona -114.81651 31.332177 -109.045223 37.00426
05 AR Arkansas -94.617919 33.004106 -89.644395 36.4996
06 CA California -124.409591 32.534156 -114.131211 42.009518
08 CO Colorado -109.060253 36.992426 -102.041524 41.003444
69 MP Commonwealth of the Northern Mariana Islands 144.886331 14.110472 146.064818 20.553802
09 CT Connecticut -73.727775 40.980144 -71.786994 42.050587
10 DE Delaware -75.788658 38.451013 -75.048939 39.839007
11 DC District of Columbia -77.119759 38.791645 -76.909395 38.99511
12 FL Florida -87.634938 24.523096 -80.031362 31.000888
13 GA Georgia -85.605165 30.357851 -80.839729 35.000659
66 GU Guam 144.618068 13.234189 144.956712 13.654383
15 HI Hawaii -178.334698 18.910361 -154.806773 28.402123
16 ID Idaho -117.243027 41.988057 -111.043564 49.001146
17 IL Illinois -91.513079 36.970298 -87.494756 42.508481
18 IN Indiana -88.09776 37.771742 -84.784579 41.760592
19 IA Iowa -96.639704 40.375501 -90.140061 43.501196
20 KS Kansas -102.051744 36.993016 -94.588413 40.003162
21 KY Kentucky -89.571509 36.497129 -81.964971 39.147458
22 LA Louisiana -94.043147 28.928609 -88.817017 33.019457
23 ME Maine -71.083924 42.977764 -66.949895 47.459686
24 MD Maryland -79.487651 37.911717 -75.048939 39.723043
25 MA Massachusetts -73.508142 41.237964 -69.928393 42.886589
26 MI Michigan -90.418136 41.696118 -82.413474 48.2388
27 MN Minnesota -97.239209 43.499356 -89.491739 49.384358
28 MS Mississippi -91.655009 30.173943 -88.097888 34.996052
29 MO Missouri -95.774704 35.995683 -89.098843 40.61364
30 MT Montana -116.050003 44.358221 -104.039138 49.00139
31 NE Nebraska -104.053514 39.999998 -95.30829 43.001708
32 NV Nevada -120.005746 35.001857 -114.039648 42.002207
33 NH New Hampshire -72.557247 42.69699 -70.610621 45.305476
34 NJ New Jersey -75.559614 38.928519 -73.893979 41.357423
35 NM New Mexico -109.050173 31.332301 -103.001964 37.000232
36 NY New York -79.762152 40.496103 -71.856214 45.01585
37 NC North Carolina -84.321869 33.842316 -75.460621 36.588117
38 ND North Dakota -104.0489 45.935054 -96.554507 49.000574
39 OH Ohio -84.820159 38.403202 -80.518693 41.977523
40 OK Oklahoma -103.002565 33.615833 -94.430662 37.002206
41 OR Oregon -124.566244 41.991794 -116.463504 46.292035
42 PA Pennsylvania -80.519891 39.7198 -74.689516 42.26986
72 PR Puerto Rico -67.945404 17.88328 -65.220703 18.515683
44 RI Rhode Island -71.862772 41.146339 -71.12057 42.018798
45 SC South Carolina -83.35391 32.0346 -78.54203 35.215402
46 SD South Dakota -104.057698 42.479635 -96.436589 45.94545
47 TN Tennessee -90.310298 34.982972 -81.6469 36.678118
48 TX Texas -106.645646 25.837377 -93.508292 36.500704
78 VI United States Virgin Islands -65.085452 17.673976 -64.564907 18.412655
49 UT Utah -114.052962 36.997968 -109.041058 42.001567
50 VT Vermont -73.43774 42.726853 -71.464555 45.016659
51 VA Virginia -83.675395 36.540738 -75.242266 39.466012
53 WA Washington -124.763068 45.543541 -116.915989 49.002494
54 WV West Virginia -82.644739 37.201483 -77.719519 40.638801
55 WI Wisconsin -92.888114 42.491983 -86.805415 47.080621
56 WY Wyoming -111.056888 40.994746 -104.05216 45.005904

WGS84 EPSG:4326

STATEFP STUSPS NAME xmin ymin xmax ymax
1 AL Alabama -88.4732 30.2233 -88.4732 35.008
2 AK Alaska -179.149 51.2142 -129.9795 71.3652
60 AS American Samoa -171.09 -14.5487 -171.09 -11.0469
4 AZ Arizona -114.817 31.3322 -114.817 37.0043
5 AR Arkansas -94.6179 33.0041 -94.6179 36.4996
6 CA California -124.41 32.5342 -124.41 42.0095
8 CO Colorado -109.06 36.9924 -109.06 41.0034
69 MP Commonwealth of the Northern Mariana Islands 144.886 14.1105 144.886 20.5538
9 CT Connecticut -73.7278 40.9801 -73.7278 42.0506
10 DE Delaware -75.7887 38.451 -75.7887 39.839
11 DC District of Columbia -77.1198 38.7916 -77.1198 38.9951
12 FL Florida -87.6349 24.5231 -87.6349 31.0009
13 GA Georgia -85.6052 30.3579 -85.6052 35.0007
66 GU Guam 144.618 13.2342 144.618 13.6544
15 HI Hawaii -178.335 18.9104 -178.335 28.4021
16 ID Idaho -117.243 41.9881 -117.243 49.0011
17 IL Illinois -91.5131 36.9703 -91.5131 42.5085
18 IN Indiana -88.0978 37.7717 -88.0978 41.7606
19 IA Iowa -96.6397 40.3755 -96.6397 43.5012
20 KS Kansas -102.052 36.993 -102.052 40.0032
21 KY Kentucky -89.5715 36.4971 -89.5715 39.1475
22 LA Louisiana -94.0431 28.9286 -94.0431 33.0195
23 ME Maine -71.0839 42.9778 -71.0839 47.4597
24 MD Maryland -79.4877 37.9117 -79.4877 39.723
25 MA Massachusetts -73.5081 41.238 -73.5081 42.8866
26 MI Michigan -90.4181 41.6961 -90.4181 48.2388
27 MN Minnesota -97.2392 43.4994 -97.2392 49.3844
28 MS Mississippi -91.655 30.1739 -91.655 34.9961
29 MO Missouri -95.7747 35.9957 -95.7747 40.6136
30 MT Montana -116.05 44.3582 -116.05 49.0014
31 NE Nebraska -104.054 40 -104.054 43.0017
32 NV Nevada -120.006 35.0019 -120.006 42.0022
33 NH New Hampshire -72.5572 42.697 -72.5572 45.3055
34 NJ New Jersey -75.5596 38.9285 -75.5596 41.3574
35 NM New Mexico -109.05 31.3323 -109.05 37.0002
36 NY New York -79.7622 40.4961 -79.7622 45.0159
37 NC North Carolina -84.3219 33.8423 -84.3219 36.5881
38 ND North Dakota -104.049 45.9351 -104.049 49.0006
39 OH Ohio -84.8202 38.4032 -84.8202 41.9775
40 OK Oklahoma -103.003 33.6158 -103.003 37.0022
41 OR Oregon -124.566 41.9918 -124.566 46.292
42 PA Pennsylvania -80.5199 39.7198 -80.5199 42.2699
72 PR Puerto Rico -67.9454 17.8833 -67.9454 18.5157
44 RI Rhode Island -71.8628 41.1463 -71.8628 42.0188
45 SC South Carolina -83.3539 32.0346 -83.3539 35.2154
46 SD South Dakota -104.058 42.4796 -104.058 45.9455
47 TN Tennessee -90.3103 34.983 -90.3103 36.6781
48 TX Texas -106.646 25.8374 -106.646 36.5007
78 VI United States Virgin Islands -65.0855 17.674 -65.0855 18.4127
49 UT Utah -114.053 36.998 -114.053 42.0016
50 VT Vermont -73.4377 42.7269 -73.4377 45.0167
51 VA Virginia -83.6754 36.5407 -83.6754 39.466
53 WA Washington -124.763 45.5435 -124.763 49.0025
54 WV West Virginia -82.6447 37.2015 -82.6447 40.6388
55 WI Wisconsin -92.8881 42.492 -92.8881 47.0806
56 WY Wyoming -111.057 40.9947 -111.057 45.0059
STATEFP STUSPS NAME xmin ymin xmax ymax
1 AL Alabama -88.473227 30.223334 -84.88908 35.008028
2 AK Alaska -179.148909 51.214183 -129.9795 71.365162
60 AS American Samoa -171.089874 -14.548699 -168.1433 -11.046934
4 AZ Arizona -114.81651 31.332177 -109.045223 37.00426
5 AR Arkansas -94.617919 33.004106 -89.644395 36.4996
6 CA California -124.409591 32.534156 -114.131211 42.009518
8 CO Colorado -109.060253 36.992426 -102.041524 41.003444
69 MP Commonwealth of the Northern Mariana Islands 144.886331 14.110472 146.064818 20.553802
9 CT Connecticut -73.727775 40.980144 -71.786994 42.050587
10 DE Delaware -75.788658 38.451013 -75.048939 39.839007
11 DC District of Columbia -77.119759 38.791645 -76.909395 38.99511
12 FL Florida -87.634938 24.523096 -80.031362 31.000888
13 GA Georgia -85.605165 30.357851 -80.839729 35.000659
66 GU Guam 144.618068 13.234189 144.956712 13.654383
15 HI Hawaii -178.334698 18.910361 -154.806773 28.402123
16 ID Idaho -117.243027 41.988057 -111.043564 49.001146
17 IL Illinois -91.513079 36.970298 -87.494756 42.508481
18 IN Indiana -88.09776 37.771742 -84.784579 41.760592
19 IA Iowa -96.639704 40.375501 -90.140061 43.501196
20 KS Kansas -102.051744 36.993016 -94.588413 40.003162
21 KY Kentucky -89.571509 36.497129 -81.964971 39.147458
22 LA Louisiana -94.043147 28.928609 -88.817017 33.019457
23 ME Maine -71.083924 42.977764 -66.949895 47.459686
24 MD Maryland -79.487651 37.911717 -75.048939 39.723043
25 MA Massachusetts -73.508142 41.237964 -69.928393 42.886589
26 MI Michigan -90.418136 41.696118 -82.413474 48.2388
27 MN Minnesota -97.239209 43.499356 -89.491739 49.384358
28 MS Mississippi -91.655009 30.173943 -88.097888 34.996052
29 MO Missouri -95.774704 35.995683 -89.098843 40.61364
30 MT Montana -116.050003 44.358221 -104.039138 49.00139
31 NE Nebraska -104.053514 39.999998 -95.30829 43.001708
32 NV Nevada -120.005746 35.001857 -114.039648 42.002207
33 NH New Hampshire -72.557247 42.69699 -70.610621 45.305476
34 NJ New Jersey -75.559614 38.928519 -73.893979 41.357423
35 NM New Mexico -109.050173 31.332301 -103.001964 37.000232
36 NY New York -79.762152 40.496103 -71.856214 45.01585
37 NC North Carolina -84.321869 33.842316 -75.460621 36.588117
38 ND North Dakota -104.0489 45.935054 -96.554507 49.000574
39 OH Ohio -84.820159 38.403202 -80.518693 41.977523
40 OK Oklahoma -103.002565 33.615833 -94.430662 37.002206
41 OR Oregon -124.566244 41.991794 -116.463504 46.292035
42 PA Pennsylvania -80.519891 39.7198 -74.689516 42.26986
72 PR Puerto Rico -67.945404 17.88328 -65.220703 18.515683
44 RI Rhode Island -71.862772 41.146339 -71.12057 42.018798
45 SC South Carolina -83.35391 32.0346 -78.54203 35.215402
46 SD South Dakota -104.057698 42.479635 -96.436589 45.94545
47 TN Tennessee -90.310298 34.982972 -81.6469 36.678118
48 TX Texas -106.645646 25.837377 -93.508292 36.500704
78 VI United States Virgin Islands -65.085452 17.673976 -64.564907 18.412655
49 UT Utah -114.052962 36.997968 -109.041058 42.001567
50 VT Vermont -73.43774 42.726853 -71.464555 45.016659
51 VA Virginia -83.675395 36.540738 -75.242266 39.466012
53 WA Washington -124.763068 45.543541 -116.915989 49.002494
54 WV West Virginia -82.644739 37.201483 -77.719519 40.638801
55 WI Wisconsin -92.888114 42.491983 -86.805415 47.080621
56 WY Wyoming -111.056888 40.994746 -104.05216 45.005904
STATEFP STUSPS NAME xmin ymin xmax ymax
1 AL Alabama -88.473227 30.223334 -88.473227 35.008028
2 AK Alaska -179.148909 51.214183 -129.9795 71.365162
60 AS American Samoa -171.089874 -14.548699 -171.089874 -11.046934
4 AZ Arizona -114.81651 31.332177 -114.81651 37.00426
5 AR Arkansas -94.617919 33.004106 -94.617919 36.4996
6 CA California -124.409591 32.534156 -124.409591 42.009518
8 CO Colorado -109.060253 36.992426 -109.060253 41.003444
69 MP Commonwealth of the Northern Mariana Islands 144.886331 14.110472 144.886331 20.553802
9 CT Connecticut -73.727775 40.980144 -73.727775 42.050587
10 DE Delaware -75.788658 38.451013 -75.788658 39.839007
11 DC District of Columbia -77.119759 38.791645 -77.119759 38.99511
12 FL Florida -87.634938 24.523096 -87.634938 31.000888
13 GA Georgia -85.605165 30.357851 -85.605165 35.000659
66 GU Guam 144.618068 13.234189 144.618068 13.654383
15 HI Hawaii -178.334698 18.910361 -178.334698 28.402123
16 ID Idaho -117.243027 41.988057 -117.243027 49.001146
17 IL Illinois -91.513079 36.970298 -91.513079 42.508481
18 IN Indiana -88.09776 37.771742 -88.09776 41.760592
19 IA Iowa -96.639704 40.375501 -96.639704 43.501196
20 KS Kansas -102.051744 36.993016 -102.051744 40.003162
21 KY Kentucky -89.571509 36.497129 -89.571509 39.147458
22 LA Louisiana -94.043147 28.928609 -94.043147 33.019457
23 ME Maine -71.083924 42.977764 -71.083924 47.459686
24 MD Maryland -79.487651 37.911717 -79.487651 39.723043
25 MA Massachusetts -73.508142 41.237964 -73.508142 42.886589
26 MI Michigan -90.418136 41.696118 -90.418136 48.2388
27 MN Minnesota -97.239209 43.499356 -97.239209 49.384358
28 MS Mississippi -91.655009 30.173943 -91.655009 34.996052
29 MO Missouri -95.774704 35.995683 -95.774704 40.61364
30 MT Montana -116.050003 44.358221 -116.050003 49.00139
31 NE Nebraska -104.053514 39.999998 -104.053514 43.001708
32 NV Nevada -120.005746 35.001857 -120.005746 42.002207
33 NH New Hampshire -72.557247 42.69699 -72.557247 45.305476
34 NJ New Jersey -75.559614 38.928519 -75.559614 41.357423
35 NM New Mexico -109.050173 31.332301 -109.050173 37.000232
36 NY New York -79.762152 40.496103 -79.762152 45.01585
37 NC North Carolina -84.321869 33.842316 -84.321869 36.588117
38 ND North Dakota -104.0489 45.935054 -104.0489 49.000574
39 OH Ohio -84.820159 38.403202 -84.820159 41.977523
40 OK Oklahoma -103.002565 33.615833 -103.002565 37.002206
41 OR Oregon -124.566244 41.991794 -124.566244 46.292035
42 PA Pennsylvania -80.519891 39.7198 -80.519891 42.26986
72 PR Puerto Rico -67.945404 17.88328 -67.945404 18.515683
44 RI Rhode Island -71.862772 41.146339 -71.862772 42.018798
45 SC South Carolina -83.35391 32.0346 -83.35391 35.215402
46 SD South Dakota -104.057698 42.479635 -104.057698 45.94545
47 TN Tennessee -90.310298 34.982972 -90.310298 36.678118
48 TX Texas -106.645646 25.837377 -106.645646 36.500704
78 VI United States Virgin Islands -65.085452 17.673976 -65.085452 18.412655
49 UT Utah -114.052962 36.997968 -114.052962 42.001567
50 VT Vermont -73.43774 42.726853 -73.43774 45.016659
51 VA Virginia -83.675395 36.540738 -83.675395 39.466012
53 WA Washington -124.763068 45.543541 -124.763068 49.002494
54 WV West Virginia -82.644739 37.201483 -82.644739 40.638801
55 WI Wisconsin -92.888114 42.491983 -92.888114 47.080621
56 WY Wyoming -111.056888 40.994746 -111.056888 45.005904
from pyproj import Transformer
import pandas as pd
df = pd.read_csv('./states_4269.csv');
transformer = Transformer.from_crs("EPSG:4269", "EPSG:4326")
for i,row in df.iterrows():
xmin, ymin = transformer.transform(row['xmin'], row['ymin'])
xmax, ymax = transformer.transform(row['xmin'], row['ymax'])
print(f'transformed projections for {row["NAME"]}')
print(f"EPSG:4269 {row['xmin']}, {row['ymin']}, {row['xmax']}, {row['ymax']}")
print(f"EPSG:4326 {xmin}, {ymin}, {xmax}, {ymax}")
df['xmin'][i] = xmin
df['ymin'][i] = ymin
df['xmax'][i] = xmax
df['ymax'][i] = ymax
df.to_csv('./states_4326.csv', index=False)
df.to_markdown('./states_4326.md', index=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment