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.  
getRpcProps(): IModelRpcProps Return a token that can be used to identify this iModel for RPC operations.  
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
changeSetId Accessor ReadOnly string | undefined The Id of the last changeset that was applied to this iModel.  
contextId Accessor ReadOnly GuidString | undefined The Guid that identifies the context that owns this iModel.  
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.  
iModelId Accessor ReadOnly GuidString | undefined The Guid that identifies this iModel.  
isBriefcase Accessor ReadOnly boolean Returns true if this is a briefcase copy of an iModel that is synchronized with iModelHub.  
isGeoLocated Accessor ReadOnly boolean True if this iModel has an EcefLocation.  
isOpen Accessor ReadOnly boolean    
isSnapshot Accessor ReadOnly boolean Returns true if this is a snapshot iModel.  
name string Name of the iModel  
openMode OpenMode The OpenMode used for this 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: 29 April, 2020