All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.earth.worldwind.ogc.wms.WmsGeographicBoundingBox.kt Maven / Gradle / Ivy

Go to download

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.wms

import earth.worldwind.geom.Sector.Companion.fromDegrees
import kotlinx.serialization.Serializable
import nl.adaptivity.xmlutil.serialization.XmlElement
import nl.adaptivity.xmlutil.serialization.XmlSerialName

@Serializable
@XmlSerialName("EX_GeographicBoundingBox", WMS_NAMESPACE, WMS_PREFIX)
data class WmsGeographicBoundingBox(
    @XmlElement(true)
    @XmlSerialName("northBoundLatitude", WMS_NAMESPACE, WMS_PREFIX)
    private val north: Double,
    @XmlElement(true)
    @XmlSerialName("eastBoundLongitude", WMS_NAMESPACE, WMS_PREFIX)
    private val east: Double,
    @XmlElement(true)
    @XmlSerialName("southBoundLatitude", WMS_NAMESPACE, WMS_PREFIX)
    private val south: Double,
    @XmlElement(true)
    @XmlSerialName("westBoundLongitude", WMS_NAMESPACE, WMS_PREFIX)
    private val west: Double
) {
    val geographicBoundingBox get() = fromDegrees(south, west, north - south, east - west)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy