wgs84CartographicFromSpatial Method

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

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

@returns The spatial coordinates converted to cartographic coordinates (WGS84 horizontal datum), 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.cartographicFromSpatial to perform conversion using iModel's GCS horizontal datum

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 (WGS84 horizontal datum), of the same length and order as the spatial.

Defined in

Last Updated: 25 April, 2024