From 02888ec91766f072c300cfccf05532bc7ce72d18 Mon Sep 17 00:00:00 2001 From: Riccardo Boero <ribo@nilu.no> Date: Thu, 21 Mar 2024 11:19:54 +0100 Subject: [PATCH] Renamed EU muicipalities to LAU in FACT_geo --- src/FACT_geo.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/FACT_geo.jl b/src/FACT_geo.jl index c412f96..7085d25 100644 --- a/src/FACT_geo.jl +++ b/src/FACT_geo.jl @@ -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, -- GitLab