parse_airspace_prisme: Parse PRISME Airspace format

View source: R/airspace.R

parse_airspace_prismeR Documentation

Parse PRISME Airspace format

Description

\lifecycle

experimental

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)

Usage

parse_airspace_prisme(lines)

Arguments

lines

text lines of the PRISME airspace representation

Value

a tibble of airspaces (CRS = 4326)

See Also

Other read/export: export_allft_so6(), export_apds(), export_event_so6(), export_event_trajectory(), export_flight_info(), export_flights_at_airport_fr24(), export_flights_fr24(), export_hourly_adsb(), export_model_trajectory(), export_movements(), export_positions_at_airport_fr24(), export_positions_fr24(), generate_so6(), read_cpr(), read_flights_fr24(), read_positions_fr24(), read_so6()

Examples

## Not run: 
es <- system.file("extdata", "airspace_prisme_462.prisme", package = "trrrj")
sectors <- readr::read_lines(es) %>%
  parse_airspace_prisme()

## End(Not run)

euctrl-pru/trrrj documentation built on April 15, 2024, 1:24 p.m.