Companion

object Companion

Functions

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[https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm] 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.