Skip to content
Snippets Groups Projects
Commit 8df0f72e authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Fixed error in QCEW data for states

parent 510a9781
No related branches found
No related tags found
No related merge requests found
......@@ -77,12 +77,10 @@ function us_qcew(conn::MySQL.Connection, selection::Dict)
# iterate over geo objects
for id in geo_id
# check what spatial level
if parse(Int, id) % 1000 == 0
if id[1:2] == "US"
agglvl_code = 10
else
agglvl_code = 50
end
if id[1:2] == "US"
agglvl_code = 10
elseif parse(Int, id) < 100 || parse(Int, id) % 1000 == 0
agglvl_code = 50
else
agglvl_code = 70
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment