io.jawg.geojson.Polygon.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 Polygon(
override val coordinates: PolygonCoordinates,
override val bbox: BBox? = null
) : Geometry("Polygon") {
init {
PolygonValidator.validate(coordinates)
}
override fun getAllCoordinates(): List = coordinates.flatten()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy