cartographicFromSpatial Method

Convert points in this iModel's spatial coordinate system to Cartographic coordinates using either a GeoConverter or the iModel's EcefLocation.

cartographicFromSpatial(spatial: Readonly<WritableXYAndZ>[]): Promise<Cartographic[]>

@returns The spatial coordinates converted to cartographic coordinates, of the same length and order as the spatial.

@throws IModelError if IModelConnection.isGeoLocated is false or any point could not be converted.

@see - IModelConnection.spatialFromCartographic to perform the inverse conversion.

Parameter Type Description
spatial Readonly<WritableXYAndZ>[] Coordinates to be converted from the iModel's spatial coordinate system

Returns - Promise<Cartographic[]>

The spatial coordinates converted to cartographic coordinates, of the same length and order as the spatial.

Defined in

Last Updated: 25 April, 2024