WorldWind uses an attribute-value system — embodied in 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.
AVList interface and the AVKey constants interface — as a universal configuration and communication mechanism. Nearly every major object in the SDK implements AVList, making it possible to pass construction parameters, share state, and propagate property-change events without static typed APIs. AVListImpl is the standalone implementation, while WWObjectImpl extends it to add full WWObject semantics including PropertyChangeEvent broadcasting.
AVList Interface
AVList is a key/value store backed by a Map<String, Object>. Keys are string constants (defined in AVKey) and values are arbitrary Object instances.
AVList interface — complete contract
AVListImpl
AVListImpl is the standalone implementation used when an object needs AVList behaviour but doesn’t extend any WorldWind base class.
AVListImpl — standalone usage
WWObject / WWObjectImpl
WWObjectImpl extends AVListImpl and additionally implements WWObject. It is the common base class for layers, shapes, globes, views, and all other major SDK objects.
WWObjectImpl — property change broadcasting
WWObjectImpl can broadcast state changes, and interested parties can subscribe:
Listening for property changes on a Layer
AVKey Constants
AVKey is an interface containing string constants grouped by functional area. All constants follow the reverse-domain naming pattern "gov.nasa.worldwind.avkey.*". Use these constants as keys with any AVList.
Layer Configuration
| Constant | String Value | Description |
|---|---|---|
LAYER_NAMES | "gov.nasa.worldwind.avkey.LayerNames" | Comma-separated WMS/WCS layer identifiers. |
DISPLAY_NAME | "gov.nasa.worldwind.avkey.DisplayName" | Human-readable layer or object name. |
OPACITY | "gov.nasa.worldwind.avkey.Opacity" | Layer/shape opacity (0–1). |
DESCRIPTION | "gov.nasa.worldwind.avkey.Description" | Descriptive text for a layer or dataset. |
Service
| Constant | String Value | Description |
|---|---|---|
SERVICE | "gov.nasa.worldwind.avkey.ServiceURLKey" | Base service URL. |
SERVICE_NAME | "gov.nasa.worldwind.avkey.ServiceName" | Service type identifier (e.g., "OGC:WMS"). |
GET_MAP_URL | "gov.nasa.worldwind.avkey.GetMapURL" | WMS GetMap endpoint URL. |
GET_CAPABILITIES_URL | "gov.nasa.worldwind.avkey.GetCapabilitiesURL" | WMS GetCapabilities endpoint URL. |
GET_COVERAGE_URL | "gov.nasa.worldwind.avkey.GetCoverageURL" | WCS GetCoverage endpoint URL. |
Tile Pyramid Parameters
| Constant | String Value | Description |
|---|---|---|
DATASET_NAME | "gov.nasa.worldwind.avkey.DatasetNameKey" | Cache dataset directory name. |
FORMAT_SUFFIX | "gov.nasa.worldwind.avkey.FormatSuffixKey" | Tile file extension (e.g., ".dds"). |
NUM_LEVELS | "gov.nasa.worldwind.avkey.NumLevels" | Total number of tile pyramid levels. |
NUM_EMPTY_LEVELS | "gov.nasa.worldwind.avkey.NumEmptyLevels" | Number of empty (placeholder) levels at the bottom of the pyramid. |
LEVEL_ZERO_TILE_DELTA | "gov.nasa.worldwind.avkey.LevelZeroTileDelta" | Angular size of a level-0 tile as a LatLon. |
TILE_HEIGHT | "gov.nasa.worldwind.avkey.TileHeightKey" | Tile pixel height. |
TILE_WIDTH | "gov.nasa.worldwind.avkey.TileWidthKey" | Tile pixel width. |
IMAGE_FORMAT | "gov.nasa.worldwind.avkey.ImageFormat" | MIME type for tile requests (e.g., "image/png"). |
DATA_CACHE_NAME | "gov.nasa.worldwind.avkey.DataCacheNameKey" | Relative path within the WorldWind file store. |
Geography
| Constant | String Value | Description |
|---|---|---|
SECTOR | "gov.nasa.worldwind.avKey.Sector" | Bounding Sector (lat/lon rectangle). |
SECTOR_RESOLUTION_LIMITS | "gov.nasa.worldwind.avkey.SectorResolutionLimits" | Array of SectorResolutionLimit objects. |
Data
| Constant | String Value | Description |
|---|---|---|
DATA_TYPE | "gov.nasa.worldwind.avkey.DataType" | Primitive type: INT8, INT16, FLOAT32, etc. |
BYTE_ORDER | "gov.nasa.worldwind.avkey.ByteOrder" | BIG_ENDIAN or LITTLE_ENDIAN. |
MISSING_DATA_SIGNAL | "gov.nasa.worldwind.avkey.MissingDataFlag" | Sentinel value indicating no-data pixels. |
MISSING_DATA_REPLACEMENT | "gov.nasa.worldwind.avkey.MissingDataValue" | Value substituted for missing data during rendering. |
Display and Identity
| Constant | String Value | Description |
|---|---|---|
DISPLAY_NAME | "gov.nasa.worldwind.avkey.DisplayName" | UI-facing label. |
DESCRIPTION | "gov.nasa.worldwind.avkey.Description" | Long-form description text. |
IMAGE_FORMAT | "gov.nasa.worldwind.avkey.ImageFormat" | Requested image MIME type. |
System / Factory
| Constant | String Value | Description |
|---|---|---|
DATA_FILE_STORE_CLASS_NAME | "gov.nasa.worldwind.avkey.DataFileStoreClassName" | Implementation class for the file store. |
RETRIEVAL_SERVICE_CLASS_NAME | "gov.nasa.worldwind.avkey.RetrievalServiceClassName" | Implementation class for the HTTP retrieval service. |
TASK_SERVICE_CLASS_NAME | "gov.nasa.worldwind.avkey.TaskServiceClassName" | Implementation class for the background task scheduler. |
MODEL_CLASS_NAME | "gov.nasa.worldwind.avkey.ModelClassName" | Implementation class for the Model. |
Path Types
| Constant | String Value | Description |
|---|---|---|
GREAT_CIRCLE | "gov.nasa.worldwind.avkey.GreatCircle" | Great-circle arc interpolation. |
RHUMB_LINE | (see AVKey.RHUMB_LINE) | Rhumb-line (constant bearing) interpolation. |
LINEAR | (see AVKey.LINEAR) | Straight Cartesian interpolation. |
Complete Example: AVList for Tile Configuration
Building a tile pyramid configuration with AVList
Because
AVList stores Object values, always cast the return of getValue() to the expected type. Use getStringValue() for String-typed entries — it throws WWRuntimeException if the value exists but is not a String, making type errors easier to diagnose.