Returns ANSP (Air Navigation Service Provider) airspace geometries from the
ACE (ATM Cost-Effectiveness) benchmarking dataset as an sf object for the
specified CFMU AIRAC cycle.
Airspaces with code AIRPORT, UNKNOWN or MILITARY are excluded.
Value
An sf object with the following columns:
airac_cfmu: the AIRAC cycle idid: the airspace identifiercode: the ANSP codename: the ANSP nameace_code: the ACE benchmarking codemin_fl: the minimum flight levelmax_fl: the maximum flight levelairspace_type: the airspace typegeometry: the airspace polygon geometry
Note
You need to either provide a connection conn that has access to
ENV_SP.AIRSPACE, PRU_CFMU_ANSP and SWH_MAP or go with the default
which uses PRU_DEV to establish a db_connection().
The sf package is required but only suggested; install it if not available.
See also
airac::cfmu_airac() from the
airac package.
Examples
if (FALSE) { # \dontrun{
ansps <- ansp_sf(cfmu_airac = "481")
# write to GeoJSON
sf::st_write(ansps, "ansp_ace_481.geojson", driver = "GeoJSON")
# if you re-use DB connections
conn <- eurocontrol::db_connection("PRU_DEV")
ansps <- ansp_sf(conn = conn, cfmu_airac = "481")
# ... do something else with conn
# ...
# then manually close the connection to the DB
DBI::dbDisconnect(conn)
} # }