getConverter Method

Obtain a converter that can convert between a geographic coordinate system and the iModel's own coordinate system.

getConverter(datumOrGCRS?: string | GeographicCRSProps): undefined | GeoConverter

@returns a converter, or undefined if the iModel is not open.

@note A BlankConnection has no connection to a backend, so it is never "open"; therefore it always returns undefined.

Parameter Type Description
datumOrGCRS string | GeographicCRSProps The name or JSON representation of the geographic coordinate system datum - for example, "WGS84".

Returns - undefined | GeoConverter

a converter, or undefined if the iModel is not open.

Defined in

Last Updated: 14 November, 2024