gildor
val geometry = readGeometryFromString(this) return geometry as? LineString ?: error("Wrong geometry type in string")