Skip to main content

NoFlyZone

#include <nfz.hpp>
No-Fly Zone polygon definition. Represents a restricted airspace area as a polygon. Altitude bounds define the vertical extent of the restriction.

Public Attributes

ReturnNameDescription
std::stringidUnique identifier for the NFZ.
NFZTypetypeType of no-fly zone.
std::vector< GeoPoint >verticesPolygon vertices (lat, lon pairs)
doublemin_altitude_mMinimum altitude affected (meters MSL)
doublemax_altitude_mMaximum altitude affected (meters MSL)

id

std::string id
Unique identifier for the NFZ.

type

NFZType type
Type of no-fly zone.

vertices

std::vector< GeoPoint > vertices
Polygon vertices (lat, lon pairs)

min_altitude_m

double min_altitude_m
Minimum altitude affected (meters MSL)

max_altitude_m

double max_altitude_m
Maximum altitude affected (meters MSL)

Public Methods

ReturnNameDescription
boolcontains_point constCheck if a point is inside the NFZ polygon (horizontal)
boolcontains_altitude constCheck if an altitude is within the NFZ vertical bounds.
boolcontains constCheck if a point (including altitude) is in the NFZ.

contains_point

const
inline bool contains_point(const GeoPoint & point) const
Check if a point is inside the NFZ polygon (horizontal)

Parameters

  • point The geographic point to check

Returns

true if point is inside the polygon

contains_altitude

const
inline bool contains_altitude(double altitude_m) const
Check if an altitude is within the NFZ vertical bounds.

Parameters

  • altitude_m Altitude in meters

Returns

true if altitude is within the NFZ vertical extent

contains

const
inline bool contains(const GeoPoint & point) const
Check if a point (including altitude) is in the NFZ.

Parameters

  • point The 3D geographic point

Returns

true if point is within the NFZ