cesium-native 0.50.0
Loading...
Searching...
No Matches
CesiumVectorData::GeoJsonPolygon Struct Reference

A Polygon geometry object. More...

#include <CesiumVectorData/GeoJsonObjectTypes.h>

Public Attributes

std::vector< std::vector< glm::dvec3 > > coordinates
 The list of linear rings making up this Polygon, each one defined by a set of four or more Cartographic coordinates.
 
std::optional< CesiumGeometry::AxisAlignedBoxboundingBox = std::nullopt
 The bounding box associated with this Polygon value, if any.
 
CesiumUtility::JsonValue::Object foreignMembers
 Any members specified on this object that are not part of the specification for this object.
 
std::optional< VectorStylestyle = std::nullopt
 The style to apply to this object as well as any child object. If not set, the style of any parent object or the default style will be used.
 

Static Public Attributes

static constexpr GeoJsonObjectType TYPE = GeoJsonObjectType::Polygon
 The GeoJsonObjectType for a Polygon.
 

Detailed Description

A Polygon geometry object.

A Polygon value contains multiple lists of four or more points that each make up a "linear ring." Each linear ring is the boundary of the surface or the boundary of a hole in that surface.

Definition at line 190 of file GeoJsonObjectTypes.h.

Member Data Documentation

◆ boundingBox

std::optional<CesiumGeometry::AxisAlignedBox> CesiumVectorData::GeoJsonPolygon::boundingBox = std::nullopt

The bounding box associated with this Polygon value, if any.

Definition at line 209 of file GeoJsonObjectTypes.h.

◆ coordinates

std::vector<std::vector<glm::dvec3> > CesiumVectorData::GeoJsonPolygon::coordinates

The list of linear rings making up this Polygon, each one defined by a set of four or more Cartographic coordinates.

Each linear ring can be thought of as a closed LineString - the first and last positions must be equivalent and contain identical values. If more than one of these rings is present, the first ring is the exterior ring bounding the surface, and each additional ring represents the bounds of holes within that surface.

Definition at line 204 of file GeoJsonObjectTypes.h.

◆ foreignMembers

CesiumUtility::JsonValue::Object CesiumVectorData::GeoJsonPolygon::foreignMembers
Initial value:
=
std::map< std::string, JsonValue > Object
The type to represent an Object JSON value.
Definition JsonValue.h:73

Any members specified on this object that are not part of the specification for this object.

See https://datatracker.ietf.org/doc/html/rfc7946#section-6.1 for more information.

Definition at line 218 of file GeoJsonObjectTypes.h.

◆ style

std::optional<VectorStyle> CesiumVectorData::GeoJsonPolygon::style = std::nullopt

The style to apply to this object as well as any child object. If not set, the style of any parent object or the default style will be used.

Definition at line 225 of file GeoJsonObjectTypes.h.

◆ TYPE

GeoJsonObjectType CesiumVectorData::GeoJsonPolygon::TYPE = GeoJsonObjectType::Polygon
staticconstexpr

The GeoJsonObjectType for a Polygon.

Definition at line 192 of file GeoJsonObjectTypes.h.


The documentation for this struct was generated from the following file: