GeoDB: Prepare for population

This commit is contained in:
2021-07-01 14:55:14 -05:00
parent c9391dd299
commit 33ab4c5f76
3 changed files with 54 additions and 44 deletions

View File

@@ -5,19 +5,19 @@
using RELOG
@testset "geodb_query (2018-us-county)" begin
point = RELOG.geodb_query("2018-us-county:17043")
@test point.lat == 41.83956
@test point.lon == -88.08857
region = RELOG.geodb_query("2018-us-county:17043")
@test region.centroid.lat == 41.83956
@test region.centroid.lon == -88.08857
end
@testset "geodb_query (2018-us-zcta)" begin
point = RELOG.geodb_query("2018-us-zcta:60439")
@test point.lat == 41.68241
@test point.lon == -87.98954
region = RELOG.geodb_query("2018-us-zcta:60439")
@test region.centroid.lat == 41.68241
@test region.centroid.lon == -87.98954
end
@testset "geodb_query (us-state)" begin
point = RELOG.geodb_query("us-state:IL")
@test point.lat == 39.73939
@test point.lon == -89.50414
region = RELOG.geodb_query("us-state:IL")
@test region.centroid.lat == 39.73939
@test region.centroid.lon == -89.50414
end