将iTwin平台数据加载到 NT 0 的方法
Experimental
This feature is not final and is subject to change without Cesium's standard deprecation policy.
See:
Methods
static Cesium.ITwinData.createDataSourceForRealityDataId(options) → Promise.<(GeoJsonDataSource|KmlDataSource)>
为指定的现实数据 ID 创建正确类型的数据源.
此函数只对 KML 和GeoJSON类型数据有效.
If the
type or rootDocument are not provided this function
将首先要求指定现实数据的全部元数据来填充这些值.
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
|
Returns:
Throws:
-
RuntimeError : 如果该函数不支持现实数据的类型
static Cesium.ITwinData.createTilesetForRealityDataId(options) → Promise.<Cesium3DTileset>
为指定的真假数据 ID 创建平板 。 此函数只工作
与3D 斜拉杆和点云.
If the
type or rootDocument are not provided this function
将首先要求指定现实数据的全部元数据来填充这些值.
生成的瓷砖中的 NT 0 最大空间 Error NT 1 将默认为 4,
除非它被给定的平板选项明确覆盖.
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
|
Returns:
Throws:
-
RuntimeError : 如果该函数不支持现实数据的类型
Experimental
This feature is not final and is subject to change without Cesium's standard deprecation policy.
static Cesium.ITwinData.createTilesetFromIModelId(options) → Promise.<(Cesium3DTileset|undefined)>
Create a
Cesium3DTileset for the given iModel id using iTwin's Mesh Export API.
If there is not a completed export available for the given iModel id, the returned promise will resolve to undefined.
我们建议等待10-20秒 并试图再次加载瓷砖.
如果所有导出均为无效, 则会出现错误 .
See the iTwin Platform Mesh Export API documentation for more information on request parameters
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
|
Returns:
A promise that will resolve to the created 3D tileset or
undefined if there is no completed export for the given iModel id
Throws:
-
RuntimeError : If all exports for the given iModel are Invalid
-
RuntimeError : If the iTwin API request is not successful
Example:
const tileset = await Cesium.ITwinData.createTilesetFromIModelId({ iModelId });
if (Cesium.defined(tileset)) {
viewer.scene.primitives.add(tileset);
}
Experimental
This feature is not final and is subject to change without Cesium's standard deprecation policy.
static Cesium.ITwinData.loadGeospatialFeatures(options) → Promise.<GeoJsonDataSource>
作为GeoJSON装入来自地理空间地物的数据 .
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
|