gov.nasa.worldwind.servers.wms
Class MapSource
java.lang.Object
gov.nasa.worldwind.servers.wms.MapSource
- Direct Known Subclasses:
- DataConfigurationMapSource
public class MapSource
- extends java.lang.Object
MapSource corresponds to the <MapSource> configuration elements in the
WEB-INF/config.xml configuration file. The XML form for a MapSource is:
<MapSource name=" layer name " title=" layer title ">
<description keywords="..."> layer description </description>
<root-dir> path to root of data directory for layer </root-dir>
<class>...name of class implementing MapGenerator to serve layer...</class>
<!-- zero or more properties recognized by MapGenerator class
<property name="..." value="..." />
-->
</MapSource>
See the javadoc for the optional or required properties recognized by a specific MapGenerator implementing class.
Note that the name, title, keyword attributes, along with the description element, are used in the WMS
GetCapabilities response, and are thus potentially forward-facing text strings.
|
Constructor Summary |
protected |
MapSource()
|
|
MapSource(MapSource parent,
java.lang.String name,
java.lang.String title,
java.lang.String rootDir,
java.lang.Class serviceClass,
java.lang.String description,
java.lang.String keywords,
double scaleHintMin,
double scaleHintMax,
java.util.Properties properties)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected java.lang.String description
keywords
protected java.lang.String keywords
lastUpdate
protected java.lang.String lastUpdate
mapGenerator
protected MapGenerator mapGenerator
name
protected java.lang.String name
nestedMapSources
protected java.util.Vector<MapSource> nestedMapSources
parent
protected MapSource parent
properties
protected java.util.Properties properties
rootDir
protected java.lang.String rootDir
scaleHintMax
protected double scaleHintMax
scaleHintMin
protected double scaleHintMin
serviceClass
protected java.lang.Class serviceClass
title
protected java.lang.String title
MapSource
protected MapSource()
MapSource
public MapSource(MapSource parent,
java.lang.String name,
java.lang.String title,
java.lang.String rootDir,
java.lang.Class serviceClass,
java.lang.String description,
java.lang.String keywords,
double scaleHintMin,
double scaleHintMax,
java.util.Properties properties)
addChild
public void addChild(MapSource ms)
doWriteXML
protected void doWriteXML(XMLWriter xmlwriter)
throws java.lang.Exception
- Throws:
java.lang.Exception
getChildren
public java.util.Iterator<MapSource> getChildren()
getDescription
public java.lang.String getDescription()
getExtremeElevationsMaximum
public java.lang.String getExtremeElevationsMaximum()
getExtremeElevationsMinimum
public java.lang.String getExtremeElevationsMinimum()
getKeywords
public java.lang.String getKeywords()
getLastUpdate
public java.lang.String getLastUpdate()
getMapGenerator
public MapGenerator getMapGenerator()
throws java.lang.Exception
- Throws:
java.lang.Exception
getMissingDataReplacement
public java.lang.String getMissingDataReplacement()
getMissingDataSignal
public java.lang.String getMissingDataSignal()
getName
public java.lang.String getName()
getParent
public MapSource getParent()
getProperties
public java.util.Properties getProperties()
getRootDir
public java.lang.String getRootDir()
getScaleHintMax
public double getScaleHintMax()
getScaleHintMin
public double getScaleHintMin()
getServiceClass
public java.lang.Class getServiceClass()
getTitle
public java.lang.String getTitle()
parseLastUpdate
protected java.lang.String parseLastUpdate(java.lang.String datetime)
setScaleHint
public void setScaleHint(double min,
double max)
toXML
public java.lang.String toXML()
writeChildrenXML
protected void writeChildrenXML(XMLWriter xmlwriter)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeLayerAttributes
protected void writeLayerAttributes(XMLWriter xmlwriter)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeLayerElements
protected void writeLayerElements(XMLWriter xmlwriter)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeLayerXML
protected void writeLayerXML(XMLWriter xmlwriter)
throws java.lang.Exception
- Throws:
java.lang.Exception