commit 58f5696fd951495841a9b2623be01b8ab487e6a8
parent 47116de2b63fc72e696d3462e732991c4adfdd30
Author: Erik Loualiche <eloualic@umn.edu>
Date: Sun, 23 Feb 2025 20:53:59 -0600
fixed a bug where names did not translate into county list
Diffstat:
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
@@ -38,8 +38,8 @@ You can use it
~/.julia/bin/tigerfetch --help
~/.julia/bin/tigerfetch state --output tmp
~/.julia/bin/tigerfetch cousub --state IL --output tmp
-~/.julia/bin/tigerfetch areawater --state "Minnesota" --output tmp # does not work # 10,000 lakes
-~/.julia/bin/tigerfetch areawater --state "Minnesota" --county "Hennepin" --output tmp # works
+~/.julia/bin/tigerfetch areawater --state "Minnesota" --output tmp # 10,000 lakes
+~/.julia/bin/tigerfetch areawater --state "MN" --county "Hennepin" --output tmp
```
diff --git a/src/cli.jl b/src/cli.jl
@@ -34,7 +34,7 @@ tigerfetch areawater --state "Minnesota" # 10,000 lakes
output::String=pwd(),
force::Bool=false)
- tigerdownload(type, year, state=state, county=county, output=output, force=force)
+ tigerdownload(type, year; state=state, county=county, output=output, force=force)
end
# -------------------------------------------------------------------------------------------------
diff --git a/src/download.jl b/src/download.jl
@@ -133,7 +133,7 @@ function download_shapefile(
state_name = state_info[3]
# Get counties for this state
- counties = get_county_list(state)
+ counties = get_county_list(state_fips)
# Filter for specific county if provided
if !isnothing(county)