Package-level declarations

Types

Link copied to clipboard
@Serializable
@XmlSerialName(value = "BoundingBox", namespace = "http://www.opengis.net/ows", prefix = "ows")
data class Ows10BoundingBox(val crs: String? = null, val lowerCorner: String, val upperCorner: String)
Link copied to clipboard
@Serializable
@XmlSerialName(value = "AllowedValues", namespace = "http://www.opengis.net/ows", prefix = "ows")
data class Wfs11AllowedValues(val values: List<String> = emptyList())
Link copied to clipboard
@Serializable
@XmlSerialName(value = "WFS_Capabilities", namespace = "http://www.opengis.net/wfs", prefix = "wfs")
data class Wfs11Capabilities(val version: String = "1.1.0", val operationsMetadata: Wfs11OperationsMetadata? = null, val featureTypeList: Wfs11FeatureTypeList = Wfs11FeatureTypeList())

Minimal model for an OGC WFS 1.1.0 GetCapabilities response. Only the fields needed to negotiate an output format and build a GetFeature request are mapped — service contact, provider, and filter-encoding sections are skipped on purpose. WFS 1.1.0 uses OWS 1.0, DefaultSRS/OtherSRS (not DefaultCRS/OtherCRS), and the GetFeature URL takes typeName (singular) + maxFeatures, not typeNames + count.

Link copied to clipboard
@Serializable
@XmlSerialName(value = "DCP", namespace = "http://www.opengis.net/ows", prefix = "ows")
data class Wfs11Dcp(val http: Wfs11Http)
Link copied to clipboard
@Serializable
@XmlSerialName(value = "FeatureType", namespace = "http://www.opengis.net/wfs", prefix = "wfs")
data class Wfs11FeatureType(val name: String, val title: String? = null, val abstract: String? = null, val defaultSrs: String? = null, val otherSrs: List<String> = emptyList(), val wgs84BoundingBox: Ows10BoundingBox? = null, val outputFormatsWrapper: Wfs11OutputFormats? = null)
Link copied to clipboard
@Serializable
@XmlSerialName(value = "FeatureTypeList", namespace = "http://www.opengis.net/wfs", prefix = "wfs")
data class Wfs11FeatureTypeList(val featureTypes: List<Wfs11FeatureType> = emptyList()) : Iterable<Wfs11FeatureType>
Link copied to clipboard
@Serializable
@XmlSerialName(value = "HTTP", namespace = "http://www.opengis.net/ows", prefix = "ows")
data class Wfs11Http(val getMethods: List<Wfs11HttpMethod> = emptyList(), val postMethods: List<Wfs11HttpMethod> = emptyList())
Link copied to clipboard
@Serializable
data class Wfs11HttpMethod(val url: String)
Link copied to clipboard
@Serializable
@XmlSerialName(value = "Operation", namespace = "http://www.opengis.net/ows", prefix = "ows")
data class Wfs11Operation(val name: String, val dcps: List<Wfs11Dcp> = emptyList(), val parameters: List<Wfs11Parameter> = emptyList())
Link copied to clipboard
@Serializable
@XmlSerialName(value = "OperationsMetadata", namespace = "http://www.opengis.net/ows", prefix = "ows")
data class Wfs11OperationsMetadata(val operations: List<Wfs11Operation> = emptyList())
Link copied to clipboard
@Serializable
@XmlSerialName(value = "OutputFormats", namespace = "http://www.opengis.net/wfs", prefix = "wfs")
data class Wfs11OutputFormats(val formats: List<String> = emptyList())
Link copied to clipboard
@Serializable
@XmlSerialName(value = "Parameter", namespace = "http://www.opengis.net/ows", prefix = "ows")
data class Wfs11Parameter(val name: String, val directValues: List<String> = emptyList(), val allowed: Wfs11AllowedValues? = null)

OWS 1.0 Parameter. Older servers list <ows:Value> directly; newer use the <ows:AllowedValues><ows:Value> form. Both flatten into allowedValues.

Link copied to clipboard
class WfsBulkFeatureSource(val serviceAddress: String, val layerName: String, val serviceMetadata: String? = null, val sector: Sector? = null, val maxFeatures: Int? = null, val cqlFilter: String? = null, val pageSize: Int? = null, val clientConfig: HttpClientConfig<*>.() -> Unit = {}) : BulkFeatureSource

BulkFeatureSource that fetches features from an OGC WFS endpoint. Delegates to WfsLayerFactory.fetchFeaturePages for capabilities negotiation, output-format selection, pagination, and per-page HTTP, then decodes each raw page straight into CachedFeatureRows via WfsFeatureDecoder (kotlinx-serialization for GeoJSON, WfsGmlReader for GML) — no intermediate renderable graph is built. The decoder is cross-platform: JVM, Android, JS, and iOS all share this implementation.

Link copied to clipboard
@Serializable
@XmlSerialName(value = "WFS_Capabilities", namespace = "http://www.opengis.net/wfs/2.0", prefix = "wfs")
data class WfsCapabilities(val version: String = "2.0.0", val updateSequence: String? = null, val serviceIdentification: OwsServiceIdentification? = null, val serviceProvider: OwsServiceProvider? = null, val operationsMetadata: OwsOperationsMetadata? = null, val featureTypeList: WfsFeatureTypeList = WfsFeatureTypeList())
Link copied to clipboard
@Serializable
@XmlSerialName(value = "FeatureType", namespace = "http://www.opengis.net/wfs/2.0", prefix = "wfs")
data class WfsFeatureType(val name: String, val title: String? = null, val abstract: String? = null, val keywords: List<String> = emptyList(), val defaultCrs: String? = null, val otherCrs: List<String> = emptyList(), val wgs84BoundingBox: OwsBoundingBox? = null, val outputFormats: List<String> = emptyList(), val metadataUrls: List<OwsOnlineResource> = emptyList()) : OwsDescription
Link copied to clipboard
@Serializable
@XmlSerialName(value = "FeatureTypeList", namespace = "http://www.opengis.net/wfs/2.0", prefix = "wfs")
data class WfsFeatureTypeList(val featureTypes: List<WfsFeatureType> = emptyList()) : Iterable<WfsFeatureType>
Link copied to clipboard
class WfsLayer(serviceAddress: String, typeName: String, displayName: String? = null, cqlFilter: String? = null, customLogicToApplyProperties: Renderable.(LinkedHashMap<String, Any?>) -> Unit = {}, pageSize: Int? = null, clientConfig: HttpClientConfig<*>.() -> Unit = {}, driver: ViewportRefreshDriver = ViewportRefreshDriver()) : RenderableLayer

A RenderableLayer whose contents are sourced from an OGC WFS endpoint and can be re-fetched at will. Use this when the underlying feature set is too large to fetch once — call refresh yourself with the current viewport Sector, or set autoRefresh and let the layer re-fetch the visible extent automatically during render (BBOX-bounded, so only features inside the visible globe extent are loaded).

Link copied to clipboard
class WfsServiceException(val exceptionCode: String?, val exceptionText: String?, val locator: String? = null) : RuntimeException

Thrown when a WFS endpoint returns an OGC ExceptionReport instead of the requested payload. Carries the server-supplied exception code and text so callers can surface meaningful diagnostics instead of an opaque XML parse failure.

Link copied to clipboard
class WfsTiledFeatureSource(val serviceAddress: String, val typeName: String, val serviceMetadata: String? = null, val cqlFilter: String? = null, val maxFeaturesPerTile: Int? = null, val sortBy: String? = null, val pageSize: Int? = null, val clientConfig: HttpClientConfig<*>.() -> Unit = {}) : TiledFeatureSource

TiledFeatureSource that fetches WFS features per slippy-map tile — Strategy 2 (cache-through). Each fetchTile issues a GetFeature bounded by the tile's Sector (so the server returns only that tile's features, capped at maxFeaturesPerTile) and decodes the response via WfsFeatureDecoder. Wrap in earth.worldwind.layer.cache.CachedTiledFeatureSource for the GeoPackage-backed coverage cache; drive with earth.worldwind.layer.TiledFeatureLayer.

Properties

Link copied to clipboard
Link copied to clipboard
const val OWS10_PREFIX: String
Link copied to clipboard
Link copied to clipboard
const val WFS11_PREFIX: String
Link copied to clipboard
Link copied to clipboard
const val WFS20_PREFIX: String