Companion

object Companion

Functions

Link copied to clipboard
fun createWithWkidOrNull(wkid: Int, verticalWkid: Int? = null): SpatialReference?

Creates a spatial reference based on WKID for the horizontal coordinate system and vertical coordinate system. The method creates a spatial reference that has both horizontal and vertical coordinate systems. When the vertical WKID is null or less than or equal to 0, this is equivalent to calling SpatialReference.SpatialReference, and the spatial reference will not have a vertical coordinate system associated with it. If an error occurs due to an invalid wkid or verticalWkid, this function will return null.

Link copied to clipboard

Creates a spatial reference based on well-known text. If the text is invalid, this function will return null.

Link copied to clipboard
Link copied to clipboard

Creates a spatial reference based on web Mercator. The method creates a web Mercator spatial reference.

Link copied to clipboard

Creates a spatial reference based on WGS84. The method creates a WGS84 spatial reference.