BIM.works SDKs - v1.5.0-b164
    Preparing search index...

    API Namespace Gis is used for GIS related API calls.

    Index

    Constructors

    Methods

    • Extract the GeoReference from the given Version by using the IfcMapConversion object, this is only available in IFC4 and later. This is the recommended way to extract geo references. Note, this to persist this extracted EPSG code on the model, subsequently use setGeoReference

      Parameters

      • versionUuid: string

      Returns Promise<GeoReferenceExtractionResult>

    • Extract the GeoReference from the given Version by using the IfcMapConversion information from a Pset, this is a fallback method in Ifc2x3 and not recommended to use. Note, this to persist this extracted EPSG code on the model, subsequently use setGeoReference

      Parameters

      • versionUuid: string

      Returns Promise<GeoReferenceExtractionResult>

    • Extract the GeoReference from the given Version by using a specific EPSG code. This method assumes that the LocalPlacement of IfcSite was used to write the x/y coordinates of the given EPSG system This method is not the recommended to extract geo refererences from models because it requires external data (the EPSG code) to extract the information and because it makes working with models in local coordinates confusing because of the large numbers
      Note, this to persist this extracted EPSG code on the model, subsequently use setGeoReference

      Parameters

      • versionUuid: string
      • epsgCode: string

      Returns Promise<GeoReferenceExtractionResult>

    • Extract the GeoReference from the given Version by using the latitude/longitude stored as attributes on the IfcSite object. This is not the recommended way to extract geo references from models because it's generally not accurately exported. Note, this to persist this extracted EPSG code on the model, subsequently use setGeoReference

      Parameters

      • versionUuid: string

      Returns Promise<GeoReferenceExtractionResult>

    • Extract the GeoReference from the given Version by using a specific WKT string. This can be useful for CRS definitions that do not exist in the EPSG database. This method assumes that the LocalPlacement of IfcSite was used to write the x/y coordinates of the given EPSG system This method is not the recommended to extract geo refererences from models because it requires external data (the EPSG code) to extract the information and because it makes working with models in local coordinates confusing because of the large numbers
      Note, this to persist this extracted EPSG code on the model, subsequently use setGeoReference

      Parameters

      • versionUuid: string
      • wkt: string

      Returns Promise<GeoReferenceExtractionResult>

    • Generate a 3D Tiles URL for all models in a specific Node or for a set of Version UUIDs. Also the content available on this URL is dynamic, when models are added/removed to/from this node, it will be reflected in the tile stream

      A URL is valid for 90 days and cannot be revoked.

      Parameters

      • settings: TilesSettings

        A settings object that specifies which models to load and other settings

      Returns Promise<string>

      A URL that serves the 3D Tileset

    • Get the GeoReference that is currently stored on the given Version

      Parameters

      • versionUuid: string
      • targetEpsg: string

      Returns Promise<GeoReference>

    • Set/update the GeoReference of the given Version

      Parameters

      Returns Promise<unknown>