public abstract class WMSLayer extends 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 ArrayList |
children |
protected ArrayList |
dimensions
Dimensions defined for the layer in the capabilities doc
|
protected WMSLayer |
parent |
protected Vector |
srs
CRS list of this layer (Tag CRS)
|
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(String key)
add a new keyword to the keywordList.
|
void |
addSrs(String srs)
adds a new srs to the srs vector
|
void |
addStyle(WMSStyle _style)
Adds a style to the styles vector
|
String |
getAbstract()
Gets the layer abstract
|
Vector |
getAllSrs() |
ArrayList |
getAllStyles(WMSLayer layer) |
BoundaryBox |
getBbox(String id)
returns the bbox with that id in the Bboxes vector
|
Hashtable |
getBboxes()
Gets the bBoxes vector
|
ArrayList |
getChildren() |
WMSDimension |
getDimension(String name) |
abstract ArrayList |
getDimensions()
gets the dimension vector defined in this layer
|
int |
getfixedHeight() |
int |
getfixedWidth() |
ArrayList |
getKeywords() |
BoundaryBox |
getLatLonBox() |
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
|
ArrayList |
getStyles()
Gets the style vector
|
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,
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(String srs) |
void |
setAbstract(String _abstract)
Sets the layer abstract
|
void |
setChildren(ArrayList children) |
void |
setfixedHeight(int h) |
void |
setfixedWidth(int w) |
void |
setLatLonBox(BoundaryBox box) |
void |
setName(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(String title)
Sets the layer title
|
String |
toString() |
protected ArrayList children
protected WMSLayer parent
public ArrayList styles
Themes provided by the WMS for the layer
protected Vector srs
CRS list of this layer (Tag CRS)
protected ArrayList dimensions
Dimensions defined for the layer in the capabilities doc
public abstract void parse(KXmlParser parser, TreeMap layerTreeMap) throws IOException, XmlPullParserException
Parses the LAYER tag in the WMS capabilities, filling the WMSLayer object loading the data in memory to be easily accesed
IOException
XmlPullParserException
protected void addkeyword(String key)
key
- public ArrayList getKeywords()
public void addStyle(WMSStyle _style)
Adds a style to the styles vector
_style
- public ArrayList getStyles()
Gets the style vector
public void addBBox(BoundaryBox bbox)
Adds a bbox to the Bboxes vector
bbox
- public BoundaryBox getBbox(String id)
returns the bbox with that id in the Bboxes vector
id
- public Hashtable getBboxes()
Gets the bBoxes vector
public BoundaryBox getLatLonBox()
public void setLatLonBox(BoundaryBox box)
public void addSrs(String srs)
adds a new srs to the srs vector
public void removeSrs(String srs)
public 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 ArrayList getDimensions()
gets the dimension vector defined in this layer
public WMSDimension getDimension(String name)
public void addDimension(WMSDimension dimension)
Adds a dimension to the dimension vector
dimension
- public void setName(String name)
Sets layer name
public String getTitle()
Gets layer title
public void setTitle(String title)
Sets the layer title
public String getAbstract()
Gets the layer abstract
getAbstract
in interface ILayer
public void setAbstract(String _abstract)
Sets the layer abstract
setAbstract
in interface ILayer
m_abstract
- public ArrayList getChildren()
public void setChildren(ArrayList children)
public WMSLayer getParent()
public void setParent(WMSLayer parent)
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 IOException, XmlPullParserException
parser
- IOException
XmlPullParserException
protected void readLayerAttributes(KXmlParser parser)
parser
-