将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
Name Type Description
iTwinId string 从 iTwin 装入数据的 ID
realityDataId string 要加载的现实数据 ID
type ITwinPlatform.RealityDataType optional 这种现实数据的类型
rootDocument string optional 此现实数据根文档的路径
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
Name Type Description
iTwinId string 从 iTwin 装入数据的 ID
realityDataId string 要加载的现实数据 ID
type ITwinPlatform.RealityDataType optional 这种现实数据的类型
rootDocument string optional 此现实数据根文档的路径
tilesetOptions Cesium3DTileset.ConstructorOptions optional Object containing options to pass to the internally created Cesium3DTileset.
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
Name Type Description
iModelId string The id of the iModel to load
tilesetOptions Cesium3DTileset.ConstructorOptions optional Object containing options to pass to the internally created Cesium3DTileset.
changesetId string optional The id of the changeset to load, if not provided the latest changesets will be used
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
Name Type Default Description
iTwinId string 从 iTwin 装入数据的 ID
collectionId string 要加载的数据收集的 ID
limit number 10000 optional number of items per page, must be between 1 and 10,000 inclusive
Returns:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.