io.jawg.geojson.MultiPolygon.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geojson-jackson Show documentation
Show all versions of geojson-jackson Show documentation
(De)Serialization of GeoJSON with Jackson for Kotlin
package io.jawg.geojson
data class MultiPolygon(
override val coordinates: List,
override val bbox: BBox? = null
) : Geometry>("MultiPolygon") {
init {
coordinates.forEach { PolygonValidator.validate(it) }
}
override fun getAllCoordinates(): List = coordinates.flatMap { it.flatten() }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy