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
CRS list of this layer (Tag CRS)
|
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(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(KXmlParser parser)
Parses the keywordlist from the capabilities and fills this list in the WMSLayer.
|
protected void |
readLayerAttributes(KXmlParser parser)
Reads and parses the layer attributes
Maybe this method should be moved to the WMSLayer.
|
void |
removeSrs(java.lang.String srs) |
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 WMSLayer parent
public java.util.ArrayList styles
Themes provided by the WMS for the layer
protected java.util.Vector srs
CRS list of this layer (Tag CRS)
protected java.util.ArrayList dimensions
Dimensions defined for the layer in the capabilities doc
public abstract void parse(KXmlParser parser, java.util.TreeMap layerTreeMap) throws java.io.IOException, XmlPullParserException
Parses the LAYER tag in the WMS capabilities, filling the WMSLayer object loading the data in memory to be easily accesed
java.io.IOException
XmlPullParserException
protected void addkeyword(java.lang.String key)
key
- public java.util.ArrayList getKeywords()
public void addStyle(WMSStyle _style)
Adds a style to the styles vector
_style
- public java.util.ArrayList getStyles()
Gets the style vector
public java.util.ArrayList getAllStyles(WMSLayer layer)
public void addBBox(BoundaryBox bbox)
Adds a bbox to the Bboxes vector
bbox
- 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 BoundaryBox getLatLonBox()
public void setLatLonBox(BoundaryBox box)
public void addSrs(java.lang.String srs)
adds a new srs to the srs vector
public void removeSrs(java.lang.String srs)
public java.util.Vector getAllSrs()
public double getScaleMax()
gets the maximum scale for this layer
public double getScaleMin()
gets the minimum scale for this layer
public void setScaleMin(double scale)
sets the minimum scale for this layer to be visible.
scale
- public void setScaleMax(double scale)
sets the maximum scale for this layer to be visible
scale
- public abstract java.util.ArrayList getDimensions()
gets the dimension vector defined in this layer
public WMSDimension getDimension(java.lang.String name)
public void addDimension(WMSDimension dimension)
Adds a dimension to the dimension vector
dimension
- public java.lang.String getName()
Gets layer name
public void setName(java.lang.String name)
Sets layer name
public java.lang.String getTitle()
Gets layer title
public void setTitle(java.lang.String title)
Sets the layer title
public java.lang.String getAbstract()
Gets the layer abstract
getAbstract
in interface ILayer
public void setAbstract(java.lang.String _abstract)
Sets the layer abstract
setAbstract
in interface ILayer
m_abstract
- public java.util.ArrayList getChildren()
public void setChildren(java.util.ArrayList children)
public WMSLayer getParent()
public void setParent(WMSLayer parent)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isQueryable()
public void setQueryable(boolean queryable)
queryable
- The queryable to set.public boolean isOpaque()
public void setOpaque(boolean opaque)
opaque.
- public boolean noSubSets()
public void setNoSubSets(boolean _noSubSets)
set
- layer nosubsets attribute.public void setfixedWidth(int w)
public int getfixedWidth()
public void setfixedHeight(int h)
public int getfixedHeight()
public boolean hasTransparency()
protected void parseKeywordList(KXmlParser parser) throws java.io.IOException, XmlPullParserException
parser
- java.io.IOException
XmlPullParserException
protected void readLayerAttributes(KXmlParser parser)
parser
-