gov.nasa.worldwind.terrain
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.BasicDataConfiguration |
|---|
dom, xpath |
| Constructor Summary | |
|---|---|
ElevationModelConfiguration(Element domElement)
Creates an instance of ElevationModelConfiguration backed by a specified DOM Element. |
|
| Method Summary | |
|---|---|
static Document |
createBasicElevationModelDocument(AVList params)
Creates a configuration document for the basic elevation model described by the specified params. |
static Element |
createBasicElevationModelElements(AVList params,
Element context)
Appends basic elevation model parameters as elements to a specified context. |
protected DataConfiguration |
createChildConfigInfo(Element domElement)
|
static Element |
createElevationModelElements(AVList params,
Element context)
Appends elevation model parameters as elements to a specified context. |
static Element |
createWMSBasicElevationModelElements(AVList params,
Element context)
Appends WMS basic elevation model parameters as elements to a specified context. |
static AVList |
getBasicElevationModelParams(Element domElement,
AVList params)
Parses basic elevation model parameters from a specified DOM document. |
static AVList |
getElevationModelParams(Element domElement,
AVList params)
Parses elevation model parameters from a specified DOM document. |
String |
getName()
Returns the text content of the DisplayName element. |
String |
getType()
Returns the string "ElevationModel". |
String |
getVersion()
Returns the elevation model's version. |
static AVList |
getWMSElevationModelParams(Capabilities caps,
String[] formatOrderPreference,
AVList params)
Parses WMS elevation model parameters from a specified WMS Capabilities document. |
static AVList |
getWMSElevationModelParams(Element domElement,
AVList params)
Parses WMS elevation model parameters from a specified DOM document. |
static boolean |
isElevationModelDocument(Element domElement)
Returns true if a specified DOM document should be accepted as an ElevationModel configuration document, and false otherwise. |
| Methods inherited from class gov.nasa.worldwind.BasicDataConfiguration |
|---|
getBoolean, getChild, getChildren, getDouble, getInteger, getLatLon, getLong, getSector, getSectorResolutionLimit, getSource, getString, getStringArray, getTimeInMillis, getUniqueStrings, getXPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElevationModelConfiguration(Element domElement)
Element.
domElement - the backing DOM Element.| Method Detail |
|---|
public static Document createBasicElevationModelDocument(AVList params)
BasicElevationModel.
params - parameters describing the basic elevation model.
public static Element createBasicElevationModelElements(AVList params, Element context)
DataConfigurationUtils.createLevelSetElements(gov.nasa.worldwind.avlist.AVList, org.w3c.dom.Element). Supported
key and element paths are: | Key | Name | Type |
AVKey.SERVICE_NAME | Service/@serviceName | String |
AVKey.PIXEL_TYPE | PixelType | String |
AVKey.BYTE_ORDER | ByteOrder | String |
AVKey.ELEVATION_EXTREMES_FILE | ExtremeElevations/FileName | String |
AVKey.ELEVATION_MAX | ExtremeElevations/@max | Double |
AVKey.ELEVATION_MIN | ExtremeElevations/@min | Double |
params - the key-value pairs which define the basic elevation model parameters.context - the XML document root on which to append parameter elements.
IllegalArgumentException - if either the parameters or the context are null.protected DataConfiguration createChildConfigInfo(Element domElement)
createChildConfigInfo in class BasicDataConfigurationpublic static Element createElevationModelElements(AVList params, Element context)
| Key | Name | Type |
AVKey.DISPLAY_NAME | DisplayName | String |
AVKey.NETWORK_RETRIEVAL_ENABLED | NetworkRetrievalEnabled | Boolean |
AVKey.MISSING_DATA_SIGNAL | MissingData/@signal | Double |
AVKey.MISSING_DATA_REPLACEMENT | MissingData/@replacement | Double |
AVKey.DETAIL_HINT | DataDetailHint | Double |
params - the key-value pairs which define the elevation model parameters.context - the XML document root on which to append parameter elements.
IllegalArgumentException - if either the parameters or the context are null.public static Element createWMSBasicElevationModelElements(AVList params, Element context)
DataConfigurationUtils.createWMSLayerElements(gov.nasa.worldwind.avlist.AVList, org.w3c.dom.Element). | Key | Name | Type |
AVKey.PIXEL_TYPE | PixelType | String |
params - the key-value pairs which define the WMS basic elevation model parameters.context - the XML document root on which to append parameter elements.
IllegalArgumentException - if either the parameters or the context are null.public static AVList getBasicElevationModelParams(Element domElement, AVList params)
DataConfigurationUtils.getLevelSetParams(org.w3c.dom.Element,
gov.nasa.worldwind.avlist.AVList). This writes output as key-value pairs to params. If a parameter from the XML
document already exists in params, that parameter is ignored. Supported key and parameter names are: | Key | Name | Type |
AVKey.SERVICE_NAME | Service/@serviceName | String |
AVKey.PIXEL_TYPE | DataType | String |
AVKey.BYTE_ORDER | DataType/@byteOrder | String |
AVKey.ELEVATION_EXTREMES_FILE | ExtremeElevations/FileName | String |
AVKey.ELEVATION_MAX | ExtremeElevations/@max | Double |
AVKey.ELEVATION_MIN | ExtremeElevations/@min | Double |
domElement - the XML document root to parse for basic elevation model parameters.params - the output key-value pairs which recieve the basic elevation model parameters. A null reference
is permitted.
IllegalArgumentException - if the document is null.public static AVList getElevationModelParams(Element domElement, AVList params)
| Key | Name | Type |
AVKey.DISPLAY_NAME | DisplayName | String |
AVKey.NETWORK_RETRIEVAL_ENABLED | NetworkRetrievalEnabled | Boolean |
AVKey.MISSING_DATA_SIGNAL | MissingData/@signal | Double |
AVKey.MISSING_DATA_REPLACEMENT | MissingData/@replacement | Double |
AVKey.DETAIL_HINT | DataDetailHint | Double |
domElement - the XML document root to parse for elevaiton model parameters.params - the output key-value pairs which recieve the elevation model parameters. A null reference is
permitted.
IllegalArgumentException - if the document is null.public String getName()
DisplayName element.
getName in interface DataConfigurationgetName in class BasicDataConfigurationpublic String getType()
getType in interface DataConfigurationgetType in class BasicDataConfigurationpublic String getVersion()
getVersion in interface DataConfigurationgetVersion in class BasicDataConfigurationpublic static AVList getWMSElevationModelParams(Capabilities caps, String[] formatOrderPreference, AVList params)
Capabilities document. This also parses common
WMS layer parameters by invoking DataConfigurationUtils.getWMSLayerParams(gov.nasa.worldwind.wms.Capabilities,
String[], gov.nasa.worldwind.avlist.AVList). This writes output as key-value pairs to params. Supported key and
parameter names are: | Key | Value | Type |
AVKey.ELEVATION_MAX | WMS layer's maximum extreme elevation | Double |
AVKey.ELEVATION_MIN | WMS layer's minimum extreme elevation | Double |
AVKey.PIXEL_TYPE | Translate WMS layer's image format to a matching pixel type | String |
caps - the WMS Capabilities document to parse for WMS layer parameters.formatOrderPreference - an ordered array of preferred image formats, or null to use the default format.params - the output key-value pairs which recieve the WMS layer parameters.
IllegalArgumentException - if either the document or params are null, or if params does not contain the
required key-value pairs.
WWRuntimeException - if the Capabilities document does not contain any of the required information.public static AVList getWMSElevationModelParams(Element domElement, AVList params)
DataConfigurationUtils.getWMSLayerParams(org.w3c.dom.Element,
gov.nasa.worldwind.avlist.AVList). This writes output as key-value pairs to params. If a parameter from the XML
document already exists in params, that parameter is ignored. Supported key and parameter names are: | Key | Name | Type |
AVKey.PIXEL_TYPE | PixelType | String |
domElement - the XML document root to parse for tiled image layer parameters.params - the output key-value pairs which recieve the tiled image layer parameters. A null reference is
permitted.
IllegalArgumentException - if the document is null.public static boolean isElevationModelDocument(Element domElement)
domElement - the DOM document in question.
IllegalArgumentException - if document is null.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||