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))
returndftemp
...
...
@@ -257,7 +257,7 @@ function get_geo_objects(scale::String, selection::Dict; host::String="127.0.0.1