commonMain.earth.worldwind.ogc.wmts.WmtsLayer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwind-jvm Show documentation
Show all versions of worldwind-jvm Show documentation
The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.
The newest version!
package earth.worldwind.ogc.wmts
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import nl.adaptivity.xmlutil.serialization.XmlChildrenName
import nl.adaptivity.xmlutil.serialization.XmlElement
import nl.adaptivity.xmlutil.serialization.XmlSerialName
@Serializable
@XmlSerialName("Layer", WMTS10_NAMESPACE, WMTS10_PREFIX)
data class WmtsLayer(
@XmlElement(true)
@XmlSerialName("Title", OWS11_NAMESPACE, OWS11_PREFIX)
override val title: String? = null,
@XmlElement(true)
@XmlSerialName("Abstract", OWS11_NAMESPACE, OWS11_PREFIX)
override val abstract: String? = null,
@XmlSerialName("Keywords", OWS11_NAMESPACE, OWS11_PREFIX)
@XmlChildrenName("Keyword", OWS11_NAMESPACE, OWS11_PREFIX)
override val keywords: List = emptyList(),
@XmlElement(true)
@XmlSerialName("Identifier", OWS11_NAMESPACE, OWS11_PREFIX)
val identifier: String,
val boundingBoxes: List = emptyList(),
@XmlSerialName("WGS84BoundingBox", OWS11_NAMESPACE, OWS11_PREFIX)
val wgs84BoundingBox: OwsBoundingBox? = null,
@XmlSerialName("Metadata", OWS11_NAMESPACE, OWS11_PREFIX)
val metadata: List = emptyList(),
val styles: List = emptyList(),
@XmlSerialName("Format", WMTS10_NAMESPACE, WMTS10_PREFIX)
val formats: List = emptyList(),
@XmlSerialName("InfoFormat", WMTS10_NAMESPACE, WMTS10_PREFIX)
val infoFormats: List = emptyList(),
val tileMatrixSetLinks: List = emptyList(),
val resourceUrls: List = emptyList(),
val dimensions: List = emptyList(),
): OwsDescription() {
val layerSupportedTileMatrixSets get() = tileMatrixSetLinks.flatMap { link ->
capabilities.tileMatrixSets.filter { set -> set.identifier == link.identifier }
}
@Transient
lateinit var capabilities: WmtsCapabilities
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy