|
cesium-native 0.52.0
|
A vector document parsed from GeoJSON. More...
#include <CesiumVectorData/GeoJsonDocument.h>
Public Member Functions | |
| GeoJsonDocument (GeoJsonObject &&rootObject, std::vector< VectorDocumentAttribution > &&attributions) | |
| Creates a new GeoJsonDocument directly from a GeoJsonObject. | |
Static Public Member Functions | |
| static CesiumUtility::Result< GeoJsonDocument > | fromGeoJson (const std::span< const std::byte > &bytes, std::vector< VectorDocumentAttribution > &&attributions={}) |
| Attempts to parse a GeoJsonDocument from the provided GeoJSON. | |
| static CesiumUtility::Result< GeoJsonDocument > | fromGeoJson (const rapidjson::Document &document, std::vector< VectorDocumentAttribution > &&attributions={}) |
| Attempts to parse a GeoJsonDocument from the provided JSON document. | |
| static CesiumAsync::Future< CesiumUtility::Result< GeoJsonDocument > > | fromCesiumIonAsset (const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor, int64_t ionAssetID, const std::string &ionAccessToken, const std::string &ionAssetEndpointUrl="https://api.cesium.com/") |
| Attempts to load a GeoJsonDocument from a Cesium ion asset. | |
| static CesiumAsync::Future< CesiumUtility::Result< GeoJsonDocument > > | fromUrl (const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor, const std::string &url, const std::vector< CesiumAsync::IAssetAccessor::THeader > &headers={}) |
| Attempts to load a GeoJsonDocument from the provided URL. | |
Public Attributes | |
| GeoJsonObject | rootObject = GeoJsonObject{GeoJsonPoint{glm::dvec3(0, 0, 0)}} |
| The root object of the parsed GeoJSON. | |
| std::vector< VectorDocumentAttribution > | attributions |
| Attribution information for this document. | |
A vector document parsed from GeoJSON.
The document is represented as a hierarchy of GeoJsonObject values starting with the root object.
Definition at line 39 of file GeoJsonDocument.h.
|
static |
Attempts to load a GeoJsonDocument from a Cesium ion asset.
| asyncSystem | The CesiumAsync::AsyncSystem. |
| pAssetAccessor | The CesiumAsync::IAssetAccessor. |
| ionAssetID | The ID of the Cesium ion asset to load. This asset must be a GeoJSON document. |
| ionAccessToken | The access token that has access to the given asset. |
| ionAssetEndpointUrl | The base URL of the ion REST API server, if different from https://api.cesium.com/. |
|
static |
Attempts to parse a GeoJsonDocument from the provided JSON document.
| document | The GeoJSON JSON document. |
| attributions | Any attributions to attach to the document. |
|
static |
Attempts to parse a GeoJsonDocument from the provided GeoJSON.
| bytes | The GeoJSON data to parse. |
| attributions | Any attributions to attach to the document. |
|
static |
Attempts to load a GeoJsonDocument from the provided URL.
| asyncSystem | The CesiumAsync::AsyncSystem. |
| pAssetAccessor | The CesiumAsync::IAssetAccessor. |
| url | The URL that this method will attempt to get a GeoJSON document from. |
| headers | Any additional headers to attach to the HTTP request to obtain the GeoJSON document. |
| std::vector<VectorDocumentAttribution> CesiumVectorData::GeoJsonDocument::attributions |
Attribution information for this document.
Definition at line 125 of file GeoJsonDocument.h.
| GeoJsonObject CesiumVectorData::GeoJsonDocument::rootObject = GeoJsonObject{GeoJsonPoint{glm::dvec3(0, 0, 0)}} |
The root object of the parsed GeoJSON.
Definition at line 120 of file GeoJsonDocument.h.