object Companion


Link copied to clipboard

fun fromJsonOrNull(inputJson: String, spatialReference: SpatialReference?): Geometry?

Creates a geometry from an ArcGIS JSON geometry representation. Geometry can be serialized and de-serialized to and from JSON. The ArcGIS REST API documentation[] describes the JSON representation of geometry objects. You can use this encoding and decoding mechanism to exchange geometries with REST Web services or to store them in text files.