fromJson

fun fromJson(@Language(value = "json") json: String): LineString(source)

Deserialize a LineString from a JSON string.

Return

The deserialized LineString.

Parameters

json

The JSON string to parse.

Throws

if the JSON string is invalid or cannot be deserialized.

if the geometry does not meet structural requirements.