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

Renamed EU muicipalities to LAU in FACT_geo

parent 01374277
No related branches found
No related tags found
No related merge requests found
......@@ -91,9 +91,9 @@ function eu_provinces(conn::MySQL.Connection)
end
"""
eu_municipalities(conn::MySQL.Connection) -> DataFrame
eu_lau(conn::MySQL.Connection) -> DataFrame
# Description
Retrieve geographical data for European municipalities from a MySQL database.
Retrieve geographical data for European LAU (local administrative units) from a MySQL database.
# Arguments
- `conn::MySQL.Connection`: An active connection to a MySQL database.
......@@ -101,7 +101,7 @@ end
# Returns
- `DataFrame`: A DataFrame containing columns for the geographic ID, WKT representation of the shape, area of the municipality, and the region 'EU'.
"""
function eu_municipalities(conn::MySQL.Connection)
function eu_lau(conn::MySQL.Connection)
dftemp = query_connection(conn, "SELECT CONCAT(cntr_code, lau_id) as geo_id, ST_AsText(SHAPE) as shape_obj, ST_Area(SHAPE) as area FROM eu_municipalities;")
dftemp[!, :region] = fill("EU", nrow(dftemp))
return dftemp
......@@ -257,7 +257,7 @@ function get_geo_objects(scale::String, selection::Dict; host::String="127.0.0.1
table_dict = Dict(
"eu_countries" => eu_countries,
"eu_macro_regions" => eu_macro_regions,
"eu_municipalities" => eu_municipalities,
"eu_lau" => eu_lau,
"eu_provinces" => eu_provinces,
"eu_regions" => eu_regions,
"us_block_groups" => us_block_groups,
......
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