TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/nasaworldwind/worldwindjava/llms.txt
Use this file to discover all available pages before exploring further.
gov.nasa.worldwind.ogc package family provides standards-compliant client implementations for key OGC (Open Geospatial Consortium) and related specifications. It covers remote imagery and coverage services (WMS, WCS), complex geographic annotation (KML/KMZ and embedded COLLADA models), geometry types (GML), and the shared OWS Common base types. All parsers are built on a streaming StAX XML architecture for low memory overhead.
WMS — Web Map Service
Package:gov.nasa.worldwind.ogc.wms
The WMS client parses GetCapabilities XML responses (WMS 1.1.1 and 1.3.0) and exposes the service metadata as a typed Java object graph.
Key Classes
| Class | Description |
|---|---|
WMSCapabilities | Top-level capabilities document; factory method retrieve(URI) fetches and parses from a server. |
WMSCapabilityInformation | <Capability> section: request descriptions, root layer tree. |
WMSLayerCapabilities | A single WMS <Layer> element with name, title, styles, CRS list, bounding boxes. |
WMSServiceInformation | <Service> section: title, abstract, contact, fees. |
WMSLayerStyle | Style descriptor with <LegendURL>. |
WMSLayerDimension | <Dimension> element for time/elevation parameters. |
WMSCapabilities — fetching and interrogating a WMS server
Creating a WMS Layer
UseWMSTiledImageLayer (in gov.nasa.worldwind.wms) to display a WMS layer:
WMSTiledImageLayer — from capabilities
WCS — Web Coverage Service
Package:gov.nasa.worldwind.ogc.wcs
The WCS client supports GetCapabilities for elevation data services (WCS 1.0.0 and 2.0).
| Class | Description |
|---|---|
WCSCapabilities | Top-level WCS capabilities document. |
WCSContents | <Contents> section enumerating available coverages. |
WCSCoverageSummary | Metadata for a single coverage: identifier, bounding box, supported formats. |
WCSCapabilities — listing available coverages
KML — Keyhole Markup Language
Package:gov.nasa.worldwind.ogc.kml
WorldWind’s KML implementation parses KML 2.2 (plain .kml and zipped .kmz) documents from files, URLs, and streams. The KMLRoot is the entry point, and KMLController integrates the parsed tree into the render loop.
KMLRoot
KMLRoot — parsing KML and KMZ
createAndParse() accepts any of: File, URL, InputStream, or String (file path or URL). For KMZ files, it automatically extracts the primary KML document from the ZIP archive.
KMLController
KMLController wraps a KMLRoot and implements Renderable and PreRenderable so the KML scene can be added directly to a RenderableLayer:
KMLController — adding KML to the scene
KML Element Classes
The parser maps every KML element to a corresponding Java class:| KML Element | Java Class |
|---|---|
<kml> root | KMLRoot |
<Document> | KMLDocument |
<Folder> | KMLFolder |
<Placemark> | KMLPlacemark |
<Point> | KMLPoint |
<LineString> | KMLLineString |
<Polygon> | KMLPolygon |
<MultiGeometry> | KMLMultiGeometry |
<GroundOverlay> | KMLGroundOverlay |
<ScreenOverlay> | KMLScreenOverlay |
<NetworkLink> | KMLNetworkLink |
<Model> | KMLModel (references COLLADA) |
<Style> / <StyleMap> | KMLStyle / KMLStyleMap |
<TimeSpan> / <TimeStamp> | KMLTimeSpan / KMLTimeStamp |
<Camera> / <LookAt> | KMLCamera / KMLLookAt |
COLLADA
Package:gov.nasa.worldwind.ogc.collada
COLLADA (.dae) 3D models are referenced from KML <Model> elements. WorldWind automatically loads and renders COLLADA geometry when a KML document is parsed. Direct use of the COLLADA API is rarely necessary outside of custom exporters or inspectors.
| Class | Description |
|---|---|
ColladaRoot | Top-level COLLADA document; entry point for direct parsing. |
ColladaMesh | Geometric mesh data (vertices, normals, texture coordinates). |
ColladaTriangles | Triangle primitive set within a mesh. |
ColladaLines | Line primitive set. |
ColladaMaterial | Material binding referencing an effect. |
ColladaEffect | Shading parameters (Phong/Lambert/Blinn). |
ColladaPhong | Phong shading parameters: diffuse, specular, shininess. |
ColladaLambert | Lambert (diffuse-only) shading. |
ColladaImage | Texture image reference. |
ColladaNode | Scene graph node with transform matrix. |
ColladaMatrix | 4×4 column-major transformation matrix. |
- Triangle and line meshes
- Phong and Lambert material shading
- Diffuse texture mapping via
<image> - Node hierarchies with
<matrix>transforms - Instances of geometry, nodes, and materials
COLLADA skinning (animations) and parametric curves are not currently supported. Only static geometry with simple material assignments will render correctly.
GML — Geography Markup Language
Package:gov.nasa.worldwind.ogc.gml
WorldWind’s GML parser supports a subset of GML 3.x geometry types used by WCS and WFS responses.
| Class | Description |
|---|---|
GMLPos | A single <gml:pos> coordinate pair or triplet. |
GMLPosList | A <gml:posList> sequence of coordinates. |
GMLRectifiedGrid | Grid definition used in WCS coverage descriptions. |
GMLGridEnvelope | Low/high corner pair defining a grid extent. |
GMLBoundingShape | <gml:boundedBy> bounding envelope. |
OWS Common
Package:gov.nasa.worldwind.ogc.ows
OWS Common (OGC Web Services Common) defines shared base types reused by WMS, WCS, and WFS responses.
| Class | Description |
|---|---|
OWSServiceIdentification | Service title, abstract, keywords, type, version. |
OWSServiceProvider | Provider contact information. |
OWSOperationsMetadata | Supported operations and their endpoints. |
OWSOperation | A single operation (e.g., GetCapabilities, GetCoverage). |
OWSDCP | Distributed Computing Platform: HTTP GET/POST endpoints. |
OWSRequestDescription | Extends OGCRequestDescription for OWS-based services. |
Complete Example: WMS GetCapabilities
Fetching and using WMSCapabilities