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

commonMain.earth.worldwind.layer.LandsatLayer.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.layer

import earth.worldwind.geom.Sector
import earth.worldwind.ogc.WmsLayer
import earth.worldwind.ogc.WmsLayerConfig
import kotlin.jvm.JvmOverloads

/**
 * Displays Landsat imagery at 15m resolution from an OGC Web Map Service (WMS). By default, LandsatLayer is configured
 * to retrieve imagery from the WMS at [&https://worldwind25.arc.nasa.gov/wms](https://worldwind25.arc.nasa.gov/wms?SERVICE=WMS&REQUEST=GetCapabilities).
 */
class LandsatLayer @JvmOverloads constructor(serviceAddress: String = "https://worldwind25.arc.nasa.gov/wms") : WmsLayer("Landsat") {
    init {
        val config = WmsLayerConfig(serviceAddress, "esat")
        setConfiguration(Sector().setFullSphere(), 15.0, config) // 15m resolution on Earth
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy