Companion

Factory methods for creating and serializing Geometry objects.

Functions

Link copied to clipboard
fun fromJson(@Language(value = "json") json: String): Geometry

Decodes a JSON string into a Geometry.

Link copied to clipboard
fun fromJsonOrNull(@Language(value = "json") json: String): Geometry?

Decodes a JSON string into a Geometry, or returns null if deserialization fails.

Link copied to clipboard

Encodes a Geometry into a JSON string.