Skip to content

CRSLocationData

The complete set of properties that define a Coordinate Reference System location.

This interface closely mirrors the IFC IfcProjectedCRS and IfcMapConversion specifications. Use CRSLocation (which implements this interface) to work with CRS data in the SDK.

CRSLocation

readonly optional calibrationFileName?: string

Optional metadata that should be set IF the CRS was defined from a calibration file.

Calibration files are typically either .jxl or .dc files.


readonly optional description?: string

The description of the coordinate reference system.

This should not be parsed in any meaningful way.


readonly eastings: number

The offset in the “X” direction from the CRS center to the origin of the SketchUp model


readonly optional geodeticDatum?: string

Optional string that identifies the geodetic datum for the CRS. Typically only defined if the “name” field is not specific enough


readonly height: number

The offset from “0” in the “Z” direction at the origin of the SketchUp model


readonly optional mapProjection?: string

Optional string that identifies the map projection used by the CRS. Typically only defined if the “name” field is not specific enough


readonly optional mapUnit?: MapUnit

Optional unit for the CRS

If not defined, Meters is assumed. When overriding this value, make sure to set the appropriate value for scale.


readonly optional mapZone?: string

Optional string that identifies the map zone used by the CRS. Typically only defined if the “name” field is not specific enough


readonly name: string

The name of the coordinate reference system being used.

It is convention for this to reference an EPSG code in the form “EPSG:27700”


readonly northings: number

The offset in the “Y” direction from the CRS center to the origin of the SketchUp model


readonly optional scale?: number

Represents the conversion between the units of the SketchUp coordinate system (inches) and the units of the CRS.

If not present, the scale will be determined based on the map unit If the map unit is not present, it is assumed to be Meters and this will default to


readonly optional tglID?: string

If present - the Trimble Geodetic Library encoding of the CRS This can be used to perform conversions between the CRS and WGS84


readonly optional verticalDatum?: string

Optional string that identifies the map zone used by the CRS. Typically only defined if the “name” field is not specific enough


readonly optional xAxis?: Vector2Like

The direction vector of the xAxis as projected on the 2d plane of the CRS

The x value represents the xAxisAbscissa from the IFC spec The y value represents the xAxisOrdinate from the IFC spec

If not present the vector [1, 0] is assumed