NASA World Wind

gov.nasa.worldwind.util
Class DataConfigurationUtils

java.lang.Object
  extended by gov.nasa.worldwind.util.DataConfigurationUtils

public class DataConfigurationUtils
extends Object

A collection of static methods useful for opening, reading, and otherwise working with World Wind data configuration documents.


Field Summary
protected static String DATE_TIME_PATTERN
           
protected static String DEFAULT_TEXTURE_FORMAT
           
 
Constructor Summary
DataConfigurationUtils()
           
 
Method Summary
protected static String chooseImageFormat(Object[] formats, String[] formatOrderPreference)
           
static Document convertToStandardDataConfigDocument(Document doc)
          Returns the specified data configuration document transformed to a standard Layer or ElevationModel configuration document.
static Element createLevelSetConfigElements(AVList params, Element context)
          Appends LevelSet configuration parameters as elements to the specified context.
static ScheduledExecutorService createResourceRetrievalService(String threadName)
          Convenience method to create a ScheduledExecutorService which can be used by World Wind components to schedule periodic resource checks.
static Element createWMSLayerConfigElements(AVList params, Element context)
          Appends WMS layer parameters as elements to a specified context.
static URL findExistingDataConfigFile(FileStore fileStore, String fileName)
          Returns the URL of an existing data configuration file under the specified file store, or null if no configuration file exists.
static AVList getDataConfigCacheName(String dataConfigCachePath, AVList params)
          Convenience method for computing a data configuration file's cache name in a FileStore, given the file's cache path.
static String getDataConfigDisplayName(Element domElement)
          Returns the specified data configuration document's display name as a string, or null if the document is not one of the recognized types.
static String getDataConfigFilename(AVList params, String suffix)
          Returns a file store path name for the specified parameters list.
static String getDataConfigType(Element domElement)
          Returns the specified data configuration document's type as a string, or null if the document is not one of the recognized types.
protected static LatLon getDataDescriptorLatLon(Element context, String path, XPath xpath)
           
protected static Sector getDataDescriptorSector(Element context, String path, XPath xpath)
           
protected static String getInactiveLevels(LevelSet levelSet)
           
static AVList getLevelSetConfigParams(Element domElement, AVList params)
          Parses LevelSet configuration parameters from the specified DOM document.
static AVList getLevelSetConfigParams(LevelSet levelSet, AVList params)
          Gathers LevelSet configuration parameters from a specified LevelSet reference.
protected static int getNumEmptyLevels(LevelSet levelSet)
           
static URL getOGCGetCapabilitiesURL(AVList params)
          Convenience method to get the OGC GetCapabilities URL from a specified parameter list.
static String[] getOGCLayerNames(AVList params)
          Convenience method to get the OGC AVKey.LAYER_NAMES parameter from a specified parameter list.
static AVList getWMSLayerConfigParams(Element domElement, AVList params)
          Parses WMS layer parameters from the XML configuration document starting at domElement.
static AVList getWMSLayerConfigParams(WMSCapabilities caps, String[] formatOrderPreference, AVList params)
           
static AVList getWWDotNetLayerSetConfigParams(Element domElement, AVList params)
          Parses World Wind .NET LayerSet configuration parameters from the specified document.
protected static LatLon getWWDotNetLayerSetLatLon(Element context, String path, XPath xpath)
           
protected static Sector getWWDotNetLayerSetSector(Element context, String path, XPath xpath)
           
static boolean hasDataConfigFile(FileStore fileStore, String fileName, boolean removeIfExpired, long expiryTime)
          Returns true if a configuration file name exists in the store which has not expired.
static boolean isDataConfig(Element domElement)
          Returns true if the specified Element is a data configuration document.
static boolean isInstalledDataDescriptorConfigDocument(Element domElement)
          Returns true if a specified DOM document is a DataDescriptor configuration document, and false otherwise.
static boolean isWWDotNetLayerSetConfigDocument(Element domElement)
          Returns true if a specified document is a World Wind .NET LayerSet configuration document, and false otherwise.
static boolean isWWDotNetLayerSetConfigEvent(XMLEvent event)
          Returns true if a specified XML event is the root of a World Wind .NET LayerSet configuration document, and false otherwise.
protected static String makeTitle(WMSCapabilities caps, String layerNames, String styleNames)
           
protected static void transformDataDescriptorCommonElements(Element context, Element outElem, XPath xpath)
           
protected static void transformDataDescriptorDataSet(Element context, Document outDoc, XPath xpath)
           
protected static void transformDataDescriptorElevationModelElements(Element context, Element outElem, XPath xpath)
           
protected static void transformDataDescriptorLayerElements(Element context, Element outElem, XPath xpath)
           
static Document transformInstalledDataDescriptorConfigDocument(Element domElement)
          Transforms a DataDescriptor configuration document to a standard layer or elevation model configuration document, depending on the contents of the Element.
protected static void transformWWDotNetLayerSet(Element context, Document outDoc, XPath xpath)
           
static Document transformWWDotNetLayerSetConfigDocument(Element domElement)
          Transforms a World Wind .NET LayerSet configuration document to a standard layer configuration document.
protected static void transformWWDotNetQuadTileSet(Element context, Element outElem, XPath xpath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_TIME_PATTERN

protected static final String DATE_TIME_PATTERN
See Also:
Constant Field Values

DEFAULT_TEXTURE_FORMAT

protected static final String DEFAULT_TEXTURE_FORMAT
See Also:
Constant Field Values
Constructor Detail

DataConfigurationUtils

public DataConfigurationUtils()
Method Detail

chooseImageFormat

protected static String chooseImageFormat(Object[] formats,
                                          String[] formatOrderPreference)

convertToStandardDataConfigDocument

public static Document convertToStandardDataConfigDocument(Document doc)
Returns the specified data configuration document transformed to a standard Layer or ElevationModel configuration document. This returns the original document if the document is already in a standard form, or if the document is not one of the recognized types. Installed DataDescriptor documents are transformed to standard Layer or ElevationModel configuration documents, depending on the document contents. World Wind .NET LayerSet documents are transformed to standard Layer configuration documents. This returns null if the document's root element is null.

Parameters:
doc - the document to transform.
Returns:
the specified document transformed to a standard data configuration document, the original document if it's already in a standard form or is unrecognized, or null if the document's root element is null.
Throws:
IllegalArgumentException - if the document is null.

createLevelSetConfigElements

public static Element createLevelSetConfigElements(AVList params,
                                                   Element context)
Appends LevelSet configuration parameters as elements to the specified context. This appends elements for the following parameters:
KeyNamePath
AVKey.DATASET_NAMEDatasetNameString
AVKey.DATA_CACHE_NAMEDataCacheNameString
AVKey.SERVICEService/URLString
AVKey.EXPIRY_TIMEExpiryTimeLong
AVKey.EXPIRY_TIMELastUpdateLong
AVKey.FORMAT_SUFFIXFormatSuffixString
AVKey.NUM_LEVELSNumLevels/@countInteger
AVKey.NUM_EMPTY_LEVELSNumLevels/@numEmptyInteger
AVKey.INACTIVE_LEVELSNumLevels/@inactiveString
AVKey.SECTORSectorSector
AVKey.SECTOR_RESOLUTION_LIMITSSectorResolutionLimit LevelSet.SectorResolution
AVKey.TILE_ORIGINTileOrigin/LatLonLatLon
AVKey.TILE_WIDTHTileSize/Dimension/@widthInteger
AVKey.TILE_HEIGHTTileSize/Dimension/@heightInteger
AVKey.LEVEL_ZERO_TILE_DELTALastUpdateLatLon
AVKey.MAX_ABSENT_TILE_ATTEMPTSMaxAbsentTileAttemptsInteger
AVKey.MIN_ABSENT_TILE_CHECK_INTERVALMinAbsentTileCheckIntervalInteger

Parameters:
params - the key-value pairs which define the LevelSet configuration parameters.
context - the XML document root on which to append LevelSet configuration elements.
Returns:
a reference to context.
Throws:
IllegalArgumentException - if either the parameters or the context are null.

createResourceRetrievalService

public static ScheduledExecutorService createResourceRetrievalService(String threadName)
Convenience method to create a ScheduledExecutorService which can be used by World Wind components to schedule periodic resource checks. The returned ExecutorService is backed by a single daemon thread with minimum priority.

Parameters:
threadName - the String name for the ExecutorService's thread, may be null.
Returns:
a new ScheduledExecutorService appropriate for scheduling periodic resource checks.

createWMSLayerConfigElements

public static Element createWMSLayerConfigElements(AVList params,
                                                   Element context)
Appends WMS layer parameters as elements to a specified context. This appends elements for the following parameters:
ParameterElement PathType
AVKey.WMS_VERSIONService/@versionString
AVKey.LAYER_NAMESService/LayerNamesString
AVKey.STYLE_NAMESService/StyleNamesString
AVKey.GET_MAP_URLService/GetMapURLString
AVKey.GET_CAPABILITIES_URLService/GetCapabilitiesURLString
AVKey.SERVICEAVKey#GET_MAP_URLString
AVKey.DATASET_NAMEAVKey.LAYER_NAMESString

Parameters:
params - the key-value pairs which define the WMS layer configuration parameters.
context - the XML document root on which to append WMS layer configuration elements.
Returns:
a reference to context.
Throws:
IllegalArgumentException - if either the parameters or the context are null.

findExistingDataConfigFile

public static URL findExistingDataConfigFile(FileStore fileStore,
                                             String fileName)
Returns the URL of an existing data configuration file under the specified file store, or null if no configuration file exists. This first looks for a configuration file with the specified name. If that does not exist, this checks the siblings of the specified file for a configuration file match.

Parameters:
fileStore - the file store in which to look.
fileName - the file name to look for. If a file with this name does not exist in the store, this looks at the file's siblings for a match.
Returns:
the URL of an existing configuration file in the store, or null if none exists.
Throws:
IllegalArgumentException - if either the file store or file name are null.

getDataConfigCacheName

public static AVList getDataConfigCacheName(String dataConfigCachePath,
                                            AVList params)
Convenience method for computing a data configuration file's cache name in a FileStore, given the file's cache path. This writes the computed cache name to the specified parameter list under the key AVKey.DATA_CACHE_NAME. If the parameter already exists, it's left unchanged.

A data configuration file's cache name is its parent directory in the cache. The cache name therefore points to the directory containing both the configuration file and any cached data associated with it. Determining the cache name at run time - instead of hard wiring it in the data configuration file - enables cache data to be moved to an arbitrary location within the cache.

Parameters:
dataConfigCachePath - the data configuration file's cache path.
params - the output key-value pairs which receive the DATA_CACHE_NAME parameter. A null reference is permitted.
Returns:
a reference to params, or a new AVList if params is null.
Throws:
IllegalArgumentException - if the data config file's cache path is null or has length zero.

getDataConfigDisplayName

public static String getDataConfigDisplayName(Element domElement)
Returns the specified data configuration document's display name as a string, or null if the document is not one of the recognized types. This determines the display name for each type of data configuration document as follows:
Document TypePath to Display Name
Layer Configuration./DisplayName
Elevation Model Configuration./DisplayName
Installed DataDescriptor./property[@name="dataSet"]/property[@name="gov.nasa.worldwind.avkey.DatasetNameKey"]
World Wind .NET LayerSet./QuadTileSet/Name
Othernull

Parameters:
domElement - the data configuration document who's display name is returned.
Returns:
a String representing the data configuration document's display name, or null if the document is not recognized.
Throws:
IllegalArgumentException - if the document is null.

getDataConfigFilename

public static String getDataConfigFilename(AVList params,
                                           String suffix)
Returns a file store path name for the specified parameters list. This returns null if the parameter list does not contain enough information to construct a path name.

Parameters:
params - the parameter list to extract a configuration filename from.
suffix - the file suffix to append on the path name, or null to append no suffix.
Returns:
a file store path name with the specified suffix, or null if a path name cannot be constructed.
Throws:
IllegalArgumentException - if the parameter list is null.

getDataConfigType

public static String getDataConfigType(Element domElement)
Returns the specified data configuration document's type as a string, or null if the document is not one of the recognized types. This maps data configuration documents to a type string as follows:
Document TypeType String
Layer Configuration"Layer"
Elevation Model Configuration"Elevation Model"
Installed DataDescriptor"Layer" or "ElevationModel"
World Wind .NET LayerSet"Layer"
Othernull

Parameters:
domElement - the data configuration document to determine a type for.
Returns:
a String representing the data configuration document's type, or null if the document is not recognized.
Throws:
IllegalArgumentException - if the document is null.

getDataDescriptorLatLon

protected static LatLon getDataDescriptorLatLon(Element context,
                                                String path,
                                                XPath xpath)

getDataDescriptorSector

protected static Sector getDataDescriptorSector(Element context,
                                                String path,
                                                XPath xpath)

getInactiveLevels

protected static String getInactiveLevels(LevelSet levelSet)

getLevelSetConfigParams

public static AVList getLevelSetConfigParams(Element domElement,
                                             AVList params)
Parses LevelSet configuration parameters from the specified DOM document. 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:
ParameterElement pathType
AVKey.DATASET_NAMEDatasetNameString
AVKey.DATA_CACHE_NAMEDataCacheNameString
AVKey.SERVICEService/URLString
AVKey.EXPIRY_TIMEExpiryTimeLong
AVKey.EXPIRY_TIMELastUpdateLong
AVKey.FORMAT_SUFFIXFormatSuffixString
AVKey.NUM_LEVELSNumLevels/@countInteger
AVKey.NUM_EMPTY_LEVELSNumLevels/@numEmptyInteger
AVKey.INACTIVE_LEVELSNumLevels/@inactiveString
AVKey.SECTORSectorSector
AVKey.SECTOR_RESOLUTION_LIMITSSectorResolutionLimit LevelSet.SectorResolution
AVKey.TILE_ORIGINTileOrigin/LatLonLatLon
AVKey.TILE_WIDTHTileSize/Dimension/@widthInteger
AVKey.TILE_HEIGHTTileSize/Dimension/@heightInteger
AVKey.LEVEL_ZERO_TILE_DELTALastUpdateLatLon
AVKey.MAX_ABSENT_TILE_ATTEMPTSAbsentTiles/MaxAttemptsInteger
AVKey.MIN_ABSENT_TILE_CHECK_INTERVALAbsentTiles/MinCheckInterval/TimeInteger milliseconds

Parameters:
domElement - the XML document root to parse for LevelSet configuration parameters.
params - the output key-value pairs which receive the LevelSet configuration parameters. A null reference is permitted.
Returns:
a reference to params, or a new AVList if params is null.
Throws:
IllegalArgumentException - if the document is null.

getLevelSetConfigParams

public static AVList getLevelSetConfigParams(LevelSet levelSet,
                                             AVList params)
Gathers LevelSet configuration parameters from a specified LevelSet reference. This writes output as key-value pairs params. If a parameter from the XML document already exists in params, that parameter is ignored. Supported key and parameter names are:
ParameterElement PathType
AVKey.DATASET_NAMEFirst Level's datasetString
AVKey.DATA_CACHE_NAMEFirst Level's cacheNameString
AVKey.SERVICEFirst Level's serviceString
AVKey.EXPIRY_TIMEFirst Level's expiryTimeLong
AVKey.FORMAT_SUFFIXFirstLevel's formatSuffixString
AVKey.NUM_LEVELSnumLevelsInteger
AVKey.NUM_EMPTY_LEVELS1 + index of first non-empty LevelInteger
AVKey.INACTIVE_LEVELSComma delimited string of Level numbersString
AVKey.SECTORsectorSector
AVKey.SECTOR_RESOLUTION_LIMITSsectorLevelLimits LevelSet.SectorResolution
AVKey.TILE_ORIGINtileOriginLatLon
AVKey.TILE_WIDTHFirst Level's tileWidthInteger
AVKey.TILE_HEIGHTFirst Level's tileHeightInteger
AVKey.LEVEL_ZERO_TILE_DELTAlevelZeroTileDeltaLatLon

Parameters:
levelSet - the LevelSet reference to gather configuration parameters from.
params - the output key-value pairs which receive the LevelSet configuration parameters. A null reference is permitted.
Returns:
a reference to params, or a new AVList if params is null.
Throws:
IllegalArgumentException - if the document is null.

getNumEmptyLevels

protected static int getNumEmptyLevels(LevelSet levelSet)

getOGCGetCapabilitiesURL

public static URL getOGCGetCapabilitiesURL(AVList params)
Convenience method to get the OGC GetCapabilities URL from a specified parameter list. If all the necessary parameters are available, this returns the GetCapabilities URL. Otherwise this returns null.

Parameters:
params - parameter list to get the GetCapabilities parameters from.
Returns:
a OGC GetCapabilities URL, or null if the necessary parameters are not available.
Throws:
IllegalArgumentException - if the parameter list is null.

getOGCLayerNames

public static String[] getOGCLayerNames(AVList params)
Convenience method to get the OGC AVKey.LAYER_NAMES parameter from a specified parameter list. If the parameter is available as a String, this returns all the OGC layer names found in that String. Otherwise this returns null.

Parameters:
params - parameter list to get the layer names from.
Returns:
an array of layer names, or null if none exist.
Throws:
IllegalArgumentException - if the parameter list is null.

getWMSLayerConfigParams

public static AVList getWMSLayerConfigParams(Element domElement,
                                             AVList params)
Parses WMS layer parameters from the XML configuration document starting at domElement. 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:
ParameterElement PathType
AVKey.WMS_VERSIONService/@versionString
AVKey.LAYER_NAMESService/LayerNamesString
AVKey.STYLE_NAMESService/StyleNamesString
AVKey.GET_MAP_URLService/GetMapURLString
AVKey.GET_CAPABILITIES_URLService/GetCapabilitiesURLString
AVKey.SERVICEAVKey#GET_MAP_URLString
AVKey.DATASET_NAMEAVKey.LAYER_NAMESString

Parameters:
domElement - the XML document root to parse for WMS layer parameters.
params - the output key-value pairs which receive the WMS layer parameters. A null reference is permitted.
Returns:
a reference to params, or a new AVList if params is null.
Throws:
IllegalArgumentException - if the document is null.

getWMSLayerConfigParams

public static AVList getWMSLayerConfigParams(WMSCapabilities caps,
                                             String[] formatOrderPreference,
                                             AVList params)

getWWDotNetLayerSetConfigParams

public static AVList getWWDotNetLayerSetConfigParams(Element domElement,
                                                     AVList params)
Parses World Wind .NET LayerSet configuration parameters from the specified document. This writes output as key-value pairs to params. If a parameter from the LayerSet document already exists in params, that parameter is ignored. Supported key and parameter names are:
ParameterElement PathType
AVKey.DISPLAY_NAMEQuadTileSet/NameString
AVKey.DATASET_NAMEQuadTileSet/NameString
AVKey.OPACITYQuadTileSet/OpacityDouble
AVKey.SERVICE_NAME"Offline" (string constant)String
AVKey.FORMAT_SUFFIXQuadTileSet/ImageAccessor/ImageFileExtensionString
AVKey.IMAGE_FORMATQuadTileSet/ImageAccessor/ImageFileExtension (converted to mime type)String
AVKey.AVAILABLE_IMAGE_FORMATSQuadTileSet/ImageAccessor/ImageFileExtension (converted to mime type)String array
AVKey.NUM_LEVELSQuadTileSet/ImageAccessor/NumberLevelsInteger
AVKey.NUM_EMPTY_LEVELS0 (integer constant)Integer
AVKey.SECTORQuadTileSet/BoundingBoxSector
AVKey.TILE_ORIGIN(-90, -180) (geographic location constant)LatLon
AVKey.LEVEL_ZERO_TILE_DELTAQuadTileSet/ImageAccessor/LevelZeroTileSizeDegreesLatLon
AVKey.TILE_WIDTHQuadTileSet/ImageAccessor/TextureSizePixelsInteger
AVKey.TILE_HEIGHTQuadTileSet/ImageAccessor/TextureSizePixelsInteger
AVKey.NETWORK_RETRIEVAL_ENABLEDfalse (boolean constant)Boolean
AVKey.TEXTURE_FORMAT"image/dds"String
AVKey.USE_MIP_MAPStrue (boolean constant)Boolean
AVKey.USE_TRANSPARENT_TEXTUREStrue (boolean constant)Boolean

Parameters:
domElement - the XML document root to parse for LayerSet configuration parameters.
params - the output key-value pairs which receive the LayerSet configuration parameters. A null reference is permitted.
Returns:
a reference to params, or a new AVList if params is null.
Throws:
IllegalArgumentException - if the document is null.

getWWDotNetLayerSetLatLon

protected static LatLon getWWDotNetLayerSetLatLon(Element context,
                                                  String path,
                                                  XPath xpath)

getWWDotNetLayerSetSector

protected static Sector getWWDotNetLayerSetSector(Element context,
                                                  String path,
                                                  XPath xpath)

hasDataConfigFile

public static boolean hasDataConfigFile(FileStore fileStore,
                                        String fileName,
                                        boolean removeIfExpired,
                                        long expiryTime)
Returns true if a configuration file name exists in the store which has not expired. This returns false if a configuration file does not exist, or it has expired. This invokes findExistingDataConfigFile(gov.nasa.worldwind.cache.FileStore, String) to determine the URL of any existing file names. If an existing file has expired, and removeIfExpired is true, this removes the existing file.

Parameters:
fileStore - the file store in which to look.
fileName - the file name to look for. If a file with this name does not exist in the store, this looks at the file's siblings for a match.
removeIfExpired - true to remove the existing file, if it exists and is expired; false otherwise.
expiryTime - the time in milliseconds, before which a file is considered to be expired.
Returns:
whether a configuration file already exists which has not expired.
Throws:
IllegalArgumentException - if either the file store or file name are null.

isDataConfig

public static boolean isDataConfig(Element domElement)
Returns true if the specified Element is a data configuration document. This recognizes the following data configuration documents:

Parameters:
domElement - the document in question.
Returns:
true if the document is a data configuration document; false otherwise.
Throws:
IllegalArgumentException - if the document is null.

isInstalledDataDescriptorConfigDocument

public static boolean isInstalledDataDescriptorConfigDocument(Element domElement)
Returns true if a specified DOM document is a DataDescriptor configuration document, and false otherwise.

Parameters:
domElement - the DOM document in question.
Returns:
true if the document is a DataDescriptor configuration document; false otherwise.
Throws:
IllegalArgumentException - if document is null.

isWWDotNetLayerSetConfigDocument

public static boolean isWWDotNetLayerSetConfigDocument(Element domElement)
Returns true if a specified document is a World Wind .NET LayerSet configuration document, and false otherwise.

Parameters:
domElement - the document in question.
Returns:
true if the document is a LayerSet configuration document; false otherwise.
Throws:
IllegalArgumentException - if document is null.

isWWDotNetLayerSetConfigEvent

public static boolean isWWDotNetLayerSetConfigEvent(XMLEvent event)
Returns true if a specified XML event is the root of a World Wind .NET LayerSet configuration document, and false otherwise.

Parameters:
event - the XML event in question.
Returns:
true if the event is a LayerSet configuration document element; false otherwise.
Throws:
IllegalArgumentException - if the event is null.

makeTitle

protected static String makeTitle(WMSCapabilities caps,
                                  String layerNames,
                                  String styleNames)

transformDataDescriptorCommonElements

protected static void transformDataDescriptorCommonElements(Element context,
                                                            Element outElem,
                                                            XPath xpath)

transformDataDescriptorDataSet

protected static void transformDataDescriptorDataSet(Element context,
                                                     Document outDoc,
                                                     XPath xpath)

transformDataDescriptorElevationModelElements

protected static void transformDataDescriptorElevationModelElements(Element context,
                                                                    Element outElem,
                                                                    XPath xpath)

transformDataDescriptorLayerElements

protected static void transformDataDescriptorLayerElements(Element context,
                                                           Element outElem,
                                                           XPath xpath)

transformInstalledDataDescriptorConfigDocument

public static Document transformInstalledDataDescriptorConfigDocument(Element domElement)
Transforms a DataDescriptor configuration document to a standard layer or elevation model configuration document, depending on the contents of the Element.

Parameters:
domElement - DataDescriptor document to transform.
Returns:
standard Layer or ElevationModel document, or null if the DataDescriptor cannot be transformed to a standard document.
Throws:
IllegalArgumentException - if the document is null.

transformWWDotNetLayerSet

protected static void transformWWDotNetLayerSet(Element context,
                                                Document outDoc,
                                                XPath xpath)

transformWWDotNetLayerSetConfigDocument

public static Document transformWWDotNetLayerSetConfigDocument(Element domElement)
Transforms a World Wind .NET LayerSet configuration document to a standard layer configuration document.

Parameters:
domElement - LayerSet document to transform.
Returns:
standard Layer document, or null if the LayerSet document cannot be transformed to a standard document.
Throws:
IllegalArgumentException - if the document is null.

transformWWDotNetQuadTileSet

protected static void transformWWDotNetQuadTileSet(Element context,
                                                   Element outElem,
                                                   XPath xpath)

NASA World Wind