![]() |
Cesium for Unity 1.23.0
|
Represents a parsed GeoJSON document. More...
Public Member Functions | |
| partial bool | IsValid () |
| Checks whether this GeoJSON document is valid. | |
| partial CesiumGeoJsonObject | GetRootObject () |
| Gets the root object of this GeoJSON document. | |
Static Public Member Functions | |
| static CesiumGeoJsonDocument | Parse (string geoJsonString) |
| Parses a GeoJSON document from a string. | |
| static async Task< CesiumGeoJsonDocument > | LoadFromUrlAsync (string url) |
| Loads a GeoJSON document from a URL asynchronously. | |
| static async Task< CesiumGeoJsonDocument > | LoadFromCesiumIonAsync (long ionAssetId, string ionAccessToken="", CesiumIonServer ionServer=null) |
| Loads a GeoJSON document from Cesium ion asynchronously. | |
Represents a parsed GeoJSON document.
A GeoJSON document contains a hierarchy of GeoJSON objects starting with a root object. This class provides methods to load GeoJSON from various sources and access the parsed content.
Definition at line 19 of file CesiumGeoJsonDocument.cs.
| partial CesiumGeoJsonObject CesiumForUnity.CesiumGeoJsonDocument.GetRootObject | ( | ) |
Gets the root object of this GeoJSON document.
| partial bool CesiumForUnity.CesiumGeoJsonDocument.IsValid | ( | ) |
Checks whether this GeoJSON document is valid.
|
inlinestatic |
Loads a GeoJSON document from Cesium ion asynchronously.
| ionAssetId | The Cesium ion asset ID. |
| ionAccessToken | The Cesium ion access token. If empty, the default token will be used. |
| ionServer | The Cesium ion server to use. If null, the default server will be used. |
Definition at line 89 of file CesiumGeoJsonDocument.cs.
|
inlinestatic |
Loads a GeoJSON document from a URL asynchronously.
| url | The URL to load the GeoJSON from. |
Definition at line 65 of file CesiumGeoJsonDocument.cs.
|
inlinestatic |
Parses a GeoJSON document from a string.
| geoJsonString | The GeoJSON string to parse. |
Definition at line 45 of file CesiumGeoJsonDocument.cs.