IModel Class

Represents an iModel in JavaScript.

see GeoLocation of iModels

Implements

Methods

Name Description
cartographicToSpatialFromEcef(cartographic: Cartographic, result?: Point3d): Point3d Convert a Cartographic to a point in this iModel's Spatial coordinates using its IModel.ecefLocation.  
ecefToSpatial(ecef: XYAndZ, result?: Point3d): Point3d Convert a point in ECEF coordinates to a point in this iModel's Spatial coordinates using its IModel.ecefLocation.  
getEcefTransform(): Transform Get the Transform from this iModel's Spatial coordinates to ECEF coordinates using its IModel.ecefLocation.  
setEcefLocation(ecef: EcefLocationProps): void Set the EcefLocation for this iModel.  
spatialToCartographicFromEcef(spatial: XYAndZ, result?: Cartographic): Cartographic Convert a point in this iModel's Spatial coordinates to a Cartographic using its IModel.ecefLocation.  
spatialToEcef(spatial: XYAndZ, result?: Point3d): Point3d Convert a point in this iModel's Spatial coordinates to an ECEF point using its IModel.ecefLocation.  
getDefaultSubCategoryId(categoryId: Id64String): Id64String Static Get the default subCategoryId for the supplied categoryId  

Properties

Name Type Description
dictionaryId Static Id64String The Id of the dictionary model.  
ecefLocation Accessor ReadOnly EcefLocation | undefined The EcefLocation of the iModel in Earth Centered Earth Fixed coordinates.  
globalOrigin Accessor Point3d An offset to be applied to all spatial coordinates.  
iModelToken Accessor ReadOnly IModelToken The token that can be used to find this iModel instance.  
isGeoLocated Accessor ReadOnly boolean True if this iModel has an EcefLocation.  
name string Name of the iModel  
projectExtents Accessor Range3d The volume, in spatial coordinates, inside which the entire project is contained.  
repositoryModelId Static Id64String The Id of the repository model.  
rootSubject RootSubjectProps The name and description of the root subject of this iModel  
rootSubjectId Static Id64String The Id of the root subject element.  

Defined in

Last Updated: 08 January, 2020