Experimental lifecycle

`parse_airspace_prisme` reads the airspace PRISME format and returns a tibble where each row describes an airspace.

Each airspace in PRISME format is described by:

  1. Airspace description (one row):

    • an airspace Unit code

    • a Elementary Sector code

    • minimum flight level

    • maximum flight level

    • the number of vertices of the polygon of the Elementary Sector

    • the coordinates of vertices

  2. vertex coordinates (as many rows as the number of vertices)

parse_airspace_prisme(lines)

Arguments

lines

text lines of the PRISME airspace representation

Value

a tibble of airspaces (CRS = 4326)

See also

Examples

if (FALSE) { es <- system.file("extdata", "airspace_prisme_462.prisme", package = "trrrj") sectors <- readr::read_lines(es) %>% parse_airspace_prisme() }