public abstract class WMSLayer extends java.lang.Object implements ILayer
Abstract class that defines an WMSLayer.
| Modifier and Type | Class and Description |
|---|---|
protected class |
WMSLayer.DataURL
Inner class describing the DataURL tag in OGC specifications in WMS
|
protected class |
WMSLayer.MetadataURL
Inner class describing the MetadataURL tag in OGC specifications in WMS
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList |
children |
protected java.util.ArrayList |
dimensions
Dimensions defined for the layer in the capabilities doc
|
protected WMSLayer |
parent |
protected java.util.Vector |
srs
Layer srs.
|
java.util.ArrayList |
styles
Themes provided by the WMS for the layer
|
| Constructor and Description |
|---|
WMSLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBBox(BoundaryBox bbox)
Adds a bbox to the Bboxes vector
|
void |
addDimension(WMSDimension dimension)
Adds a dimension to the dimension vector
|
protected void |
addkeyword(java.lang.String key)
add a new keyword to the keywordList.
|
void |
addSrs(java.lang.String srs)
adds a new srs to the srs vector
|
void |
addStyle(WMSStyle _style)
Adds a style to the styles vector
|
java.lang.String |
getAbstract()
Gets the layer abstract
|
java.util.Vector |
getAllSrs() |
java.util.ArrayList |
getAllStyles(WMSLayer layer) |
BoundaryBox |
getBbox(java.lang.String id)
returns the bbox with that id in the Bboxes vector
|
java.util.Hashtable |
getBboxes()
Gets the bBoxes vector
|
java.util.ArrayList |
getChildren() |
WMSDimension |
getDimension(java.lang.String name) |
abstract java.util.ArrayList |
getDimensions()
gets the dimension vector defined in this layer
|
int |
getfixedHeight() |
int |
getfixedWidth() |
java.util.ArrayList |
getKeywords() |
BoundaryBox |
getLatLonBox() |
java.lang.String |
getName()
Gets layer name
|
WMSLayer |
getParent() |
double |
getScaleMax()
gets the maximum scale for this layer
|
double |
getScaleMin()
gets the minimum scale for this layer
|
java.util.ArrayList |
getStyles()
Gets the style vector
|
java.lang.String |
getTitle()
Gets layer title
|
boolean |
hasTransparency() |
boolean |
isOpaque()
Tells if this layer is opaque.
|
boolean |
isQueryable()
Tells if this layer accepts getFeatureInfo requests.
|
boolean |
noSubSets()
Tells if this layer is subsettable
|
abstract void |
parse(org.kxml2.io.KXmlParser parser,
java.util.TreeMap layerTreeMap)
Parses the LAYER tag in the WMS capabilities, filling the WMSLayer object
loading the data in memory to be easily accesed
|
protected void |
parseKeywordList(org.kxml2.io.KXmlParser parser)
Parses the keywordlist from the capabilities and fills this list in the WMSLayer.
|
protected void |
readLayerAttributes(org.kxml2.io.KXmlParser parser)
Reads and parses the layer attributes
Maybe this method should be moved to the WMSLayer.
|
void |
setAbstract(java.lang.String _abstract)
Sets the layer abstract
|
void |
setChildren(java.util.ArrayList children) |
void |
setfixedHeight(int h) |
void |
setfixedWidth(int w) |
void |
setLatLonBox(BoundaryBox box) |
void |
setName(java.lang.String name)
Sets layer name
|
void |
setNoSubSets(boolean _noSubSets) |
void |
setOpaque(boolean opaque) |
void |
setParent(WMSLayer parent) |
void |
setQueryable(boolean queryable) |
void |
setScaleMax(double scale)
sets the maximum scale for this layer to be visible
|
void |
setScaleMin(double scale)
sets the minimum scale for this layer to be visible.
|
void |
setTitle(java.lang.String title)
Sets the layer title
|
java.lang.String |
toString() |
protected java.util.ArrayList children
protected java.util.ArrayList dimensions
Dimensions defined for the layer in the capabilities doc
protected WMSLayer parent
protected java.util.Vector srs
Layer srs.
public java.util.ArrayList styles
Themes provided by the WMS for the layer
public void addBBox(BoundaryBox bbox)
Adds a bbox to the Bboxes vector
bbox - public void addDimension(WMSDimension dimension)
Adds a dimension to the dimension vector
dimension - protected void addkeyword(java.lang.String key)
key - public void addSrs(java.lang.String srs)
adds a new srs to the srs vector
public void addStyle(WMSStyle _style)
Adds a style to the styles vector
_style - public java.lang.String getAbstract()
Gets the layer abstract
getAbstract in interface ILayerpublic java.util.Vector getAllSrs()
public java.util.ArrayList getAllStyles(WMSLayer layer)
public BoundaryBox getBbox(java.lang.String id)
returns the bbox with that id in the Bboxes vector
id - public java.util.Hashtable getBboxes()
Gets the bBoxes vector
public java.util.ArrayList getChildren()
public WMSDimension getDimension(java.lang.String name)
public abstract java.util.ArrayList getDimensions()
gets the dimension vector defined in this layer
public int getfixedHeight()
public int getfixedWidth()
public java.util.ArrayList getKeywords()
public BoundaryBox getLatLonBox()
public java.lang.String getName()
Gets layer name
public WMSLayer getParent()
public double getScaleMax()
gets the maximum scale for this layer
public double getScaleMin()
gets the minimum scale for this layer
public java.util.ArrayList getStyles()
Gets the style vector
public java.lang.String getTitle()
Gets layer title
public boolean hasTransparency()
public boolean isOpaque()
public boolean isQueryable()
public boolean noSubSets()
public abstract void parse(org.kxml2.io.KXmlParser parser,
java.util.TreeMap layerTreeMap)
throws java.io.IOException,
org.xmlpull.v1.XmlPullParserException
Parses the LAYER tag in the WMS capabilities, filling the WMSLayer object loading the data in memory to be easily accesed
java.io.IOExceptionorg.xmlpull.v1.XmlPullParserExceptionprotected void parseKeywordList(org.kxml2.io.KXmlParser parser)
throws java.io.IOException,
org.xmlpull.v1.XmlPullParserException
parser - java.io.IOExceptionorg.xmlpull.v1.XmlPullParserExceptionprotected void readLayerAttributes(org.kxml2.io.KXmlParser parser)
parser - public void setAbstract(java.lang.String _abstract)
Sets the layer abstract
setAbstract in interface ILayerm_abstract - public void setChildren(java.util.ArrayList children)
public void setfixedHeight(int h)
public void setfixedWidth(int w)
public void setLatLonBox(BoundaryBox box)
public void setName(java.lang.String name)
Sets layer name
public void setNoSubSets(boolean _noSubSets)
set - layer nosubsets attribute.public void setOpaque(boolean opaque)
opaque. - public void setParent(WMSLayer parent)
public void setQueryable(boolean queryable)
queryable - The queryable to set.public void setScaleMax(double scale)
sets the maximum scale for this layer to be visible
scale - public void setScaleMin(double scale)
sets the minimum scale for this layer to be visible.
scale - public void setTitle(java.lang.String title)
Sets the layer title
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013 gvSIG Association. All Rights Reserved.