|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.wms.capabilities.Layer
public class Layer
Each available map is advertised by a <Layer> element in the Capabilities XML. A single parent Layer encloses any number of additional layers, which may be hierarchically nested as desired. Some properties defined in a parent layer are inherited by the children it encloses. These inherited properties may be either redefined or added to by the child.
A Map Server shall include at least one <Layer> element for each map layer offered. If desired, layers may be repeated in different categories when relevant. No controlled vocabulary has been defined, so at present Layer and Style Names, Titles and Keywords are arbitrary.
The <Layer> element can enclose child elements providing metadata about the Layer.
Constructor Summary | |
---|---|
Layer(boolean queryable,
int cascaded,
boolean opaque,
boolean noSubsets,
int fixedWidth,
int fixedHeight,
java.lang.String name,
java.lang.String title,
java.lang.String abstract_,
Envelope latLonBoundingBox,
Attribution attribution,
ScaleHint scaleHint,
java.lang.String[] keywordList,
java.lang.String[] srs,
LayerBoundingBox[] boundingBoxes,
Dimension[] dimensions,
Extent[] extents,
AuthorityURL[] authorityURLs,
Identifier[] identifiers,
MetadataURL[] metadataURLs,
DataURL[] dataURLs,
FeatureListURL[] featureListURLs,
Style[] styles,
Layer[] layers,
AbstractDataSource[] dataSource,
Layer parent)
constructor initializing the class with the <Layer> |
Method Summary | |
---|---|
void |
addAuthorityURL(AuthorityURL authorityURL)
adds the authority attribute of the Identifier element |
void |
addBoundingBox(Envelope boundingBox)
adds the <BoundingBox> |
void |
addDataSource(AbstractDataSource dataSource)
source where the WMS can find the data of a layer. |
void |
addDataURL(DataURL dataURL)
adds the dataURL |
void |
addDimension(Dimension dimension)
adds the dimension |
void |
addExtent(Extent extent)
adds the extent declarations |
void |
addFeatureListURL(FeatureListURL featureListURL)
adds the <FeatureListURL> |
void |
addIdentifier(Identifier identifier)
adds the <Identifier> |
void |
addKeyword(java.lang.String keyword)
adds the keywordList |
void |
addLayer(Layer layer)
adds a list of layers the are enclosed by this layer. |
void |
addMetadataURL(MetadataURL metadataURL)
adds the metadataURL |
void |
addSrs(java.lang.String srs)
adds the spatial reference system (srs) |
void |
addStyles(Style style)
adds a list of style that can be used form rendering the layer. |
java.lang.String |
getAbstract()
Abstract is a narrative description of the map layer. |
Attribution |
getAttribution()
The optional <Attribution> element provides a way to identify the source of the map data used in a Layer or collection of Layers. |
AuthorityURL[] |
getAuthorityURL()
The authority attribute of the Identifier element corresponds to the name attribute of a separate <AuthorityURL> element. |
LayerBoundingBox[] |
getBoundingBoxes()
Layers may have zero or more <BoundingBox> elements that are either stated explicitly or inherited from a parent Layer. |
int |
getCascaded()
|
AbstractDataSource[] |
getDataSource()
source where the WMS can find the data of a layer. |
DataURL[] |
getDataURL()
A Map Server may use DataURL to offer more information about the data represented by a particular layer. |
Dimension[] |
getDimension()
Dimension declarations are inherited from parent Layers. |
Extent[] |
getExtent()
Extent declarations are inherited from parent Layers. |
FeatureListURL[] |
getFeatureListURL()
A Map Server may use a <FeatureListURL> element to point to a list of the features represented in a Layer. |
int |
getFixedHeight()
|
int |
getFixedWidth()
|
Identifier[] |
getIdentifier()
A Map Server may use zero or more <Identifier> elements to list ID numbers or labels defined by a particular Authority. |
java.lang.String[] |
getKeywordList()
KeywordList contains zero or more Keywords to aid in catalog searches. |
Envelope |
getLatLonBoundingBox()
Every Layer shall have exactly one <LatLonBoundingBox> element that is either stated explicitly or inherited from a parent Layer. |
Layer[] |
getLayer()
returns a list of layers the are enclosed by this layer. |
MetadataURL[] |
getMetadataURL()
A Map Server should use one or more <MetadataURL> elements to offer detailed, standardized metadata about the data underneath a particular layer. |
java.lang.String |
getName()
If, and only if, a layer has a <Name>, then it is a map layer that can be requested by using that Name in the LAYERS parameter of a GetMap request. |
Layer |
getParent()
|
ScaleHint |
getScaleHint()
Layers may include a <ScaleHint> element that suggests minimum and maximum scales for which it is appropriate to display this layer. |
java.lang.String[] |
getSrs()
Every Layer is available in one or more spatial reference systems Every Layer shall have at least one >SRS> element that is either stated explicitly or inherited from a parent Layer . |
UserStyle |
getStyle(java.lang.String name)
returns the UserStyle (SLD) representation of the style identified by the submitted name. |
Style |
getStyleResource(java.lang.String name)
returns the Style identified by the submitted name. |
Style[] |
getStyles()
|
java.lang.String |
getTitle()
A <Title> is required for all layers; it is a human-readable string for presentation in a menu. |
boolean |
hasNoSubsets()
|
boolean |
isOpaque()
|
boolean |
isQueryable()
|
boolean |
isSrsSupported(java.lang.String srs)
|
Layer |
removeLayer(java.lang.String name)
removes a Layer identified by its name from the parent Layer. |
Layer |
removeLayerByTitle(java.lang.String title)
removes a Layer identified by its title from the parent Layer. |
void |
setAbstract(java.lang.String abstract_)
sets the a narrative description of the map layer |
void |
setAttribution(Attribution attribution)
sets the optional <Attribution> element |
void |
setAuthorityURL(AuthorityURL[] authorityURL)
sets the authority attribute of the Identifier element |
void |
setBoundingBox(LayerBoundingBox[] boundingBox)
sets the boundingBox |
void |
setDataSource(AbstractDataSource[] dataSource)
source where the WMS can find the data of a layer. |
void |
setDataURL(DataURL[] dataURL)
sets the dataURL |
void |
setDimension(Dimension[] dimension)
sets the dimension |
void |
setExtent(Extent[] extent)
sets the extent |
void |
setFeatureListURL(FeatureListURL[] featureListURL)
sets the <FeatureListURL> |
void |
setIdentifier(Identifier[] identifier)
sets the <Identifier> |
void |
setKeywordList(java.lang.String[] keywordList)
sets the keywordList |
void |
setLatLonBoundingBox(Envelope latLonBoundingBox)
sets the LatLonBoundingBox element that is either stated explicitly or inherited from a parent Layer. |
void |
setLayer(Layer[] layer)
sets a list of layers the are enclosed by this layer. |
void |
setMetadataURL(MetadataURL[] metadataURL)
sets the metadataURL |
void |
setName(java.lang.String name)
sets the name of the layer |
void |
setParent(Layer parent)
sets the parent layer of this layer. |
void |
setScaleHint(ScaleHint scaleHint)
sets the |
void |
setSrs(java.lang.String[] srs)
sets the srs |
void |
setStyles(Style[] styles)
sets a list of style that can be used form rendering the layer. |
void |
setTitle(java.lang.String title)
sets the title for the layer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Layer(boolean queryable, int cascaded, boolean opaque, boolean noSubsets, int fixedWidth, int fixedHeight, java.lang.String name, java.lang.String title, java.lang.String abstract_, Envelope latLonBoundingBox, Attribution attribution, ScaleHint scaleHint, java.lang.String[] keywordList, java.lang.String[] srs, LayerBoundingBox[] boundingBoxes, Dimension[] dimensions, Extent[] extents, AuthorityURL[] authorityURLs, Identifier[] identifiers, MetadataURL[] metadataURLs, DataURL[] dataURLs, FeatureListURL[] featureListURLs, Style[] styles, Layer[] layers, AbstractDataSource[] dataSource, Layer parent)
queryable
- cascaded
- opaque
- noSubsets
- fixedWidth
- fixedHeight
- name
- title
- abstract_
- latLonBoundingBox
- attribution
- scaleHint
- keywordList
- srs
- boundingBoxes
- dimensions
- extents
- authorityURLs
- identifiers
- metadataURLs
- dataURLs
- featureListURLs
- styles
- layers
- dataSource
- parent
- Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- public java.lang.String getAbstract()
public void setAbstract(java.lang.String abstract_)
abstract_
- public java.lang.String[] getKeywordList()
public void addKeyword(java.lang.String keyword)
keyword
- public void setKeywordList(java.lang.String[] keywordList)
keywordList
- public java.lang.String[] getSrs()
1. Optional, recommended: Multiple single-valued <SRS> elements: a list of SRS values is represented as a sequence of <SRS> elements, each of which contains only a single SRS name. Example: <SRS>EPSG:1234</SRS> <SRS>EPSG:5678</SRS>.
2. Deprecated: Single list-valued <SRS> element: a list of SRS values is represented asa whitespace-separated list of SRS names contained within a single <SRS> element. Example: <SRS>EPSG:1234 EPSG:5678</SRS>.
public boolean isSrsSupported(java.lang.String srs)
srs
-
public void addSrs(java.lang.String srs)
srs
- public void setSrs(java.lang.String[] srs)
srs
- public Envelope getLatLonBoundingBox()
public void setLatLonBoundingBox(Envelope latLonBoundingBox)
latLonBoundingBox
- public LayerBoundingBox[] getBoundingBoxes()
A Layer may have multiple BoundingBox element, but each one shall state a different SRS. A Layer inherits any BoundingBox values defined by its parents. A BoundingBox inherited from the parent Layer for a particular SRS is replaced by any declaration for the same SRS in the child Layer. A BoundingBox in the child for a new SRS not already declared by the parent is added to the list of bounding boxes for the child Layer. A single Layer element shall not contain more than one BoundingBox for the same SRS.
public void addBoundingBox(Envelope boundingBox)
boundingBox
- public void setBoundingBox(LayerBoundingBox[] boundingBox)
boundingBox
- public Dimension[] getDimension()
public void addDimension(Dimension dimension)
dimension
- public void setDimension(Dimension[] dimension)
dimension
- public Extent[] getExtent()
public void addExtent(Extent extent)
extent
- public void setExtent(Extent[] extent)
extent
- public Attribution getAttribution()
public void setAttribution(Attribution attribution)
attribution
- public AuthorityURL[] getAuthorityURL()
public void addAuthorityURL(AuthorityURL authorityURL)
authorityURL
- public void setAuthorityURL(AuthorityURL[] authorityURL)
authorityURL
- public Identifier[] getIdentifier()
public void addIdentifier(Identifier identifier)
identifier
- public void setIdentifier(Identifier[] identifier)
identifier
- public MetadataURL[] getMetadataURL()
public void addMetadataURL(MetadataURL metadataURL)
metadataURL
- public void setMetadataURL(MetadataURL[] metadataURL)
metadataURL
- public DataURL[] getDataURL()
public void addDataURL(DataURL dataURL)
dataURL
- public void setDataURL(DataURL[] dataURL)
dataURL
- public FeatureListURL[] getFeatureListURL()
public void addFeatureListURL(FeatureListURL featureListURL)
featureListURL
- public void setFeatureListURL(FeatureListURL[] featureListURL)
featureListURL
- public Style[] getStyles()
public void addStyles(Style style)
style
- public void setStyles(Style[] styles)
styles
- public UserStyle getStyle(java.lang.String name)
name
- of the requested style
public Style getStyleResource(java.lang.String name)
name
- of the requested style
public ScaleHint getScaleHint()
public void setScaleHint(ScaleHint scaleHint)
scaleHint
- public Layer[] getLayer()
public Layer removeLayer(java.lang.String name)
name
-
public Layer removeLayerByTitle(java.lang.String title)
title
-
public void addLayer(Layer layer)
layer
- public void setLayer(Layer[] layer)
layer
- public AbstractDataSource[] getDataSource()
public void setDataSource(AbstractDataSource[] dataSource)
dataSource
- public void addDataSource(AbstractDataSource dataSource)
dataSource
- public Layer getParent()
public void setParent(Layer parent)
parent
- public int getCascaded()
public int getFixedHeight()
public int getFixedWidth()
public boolean hasNoSubsets()
public boolean isOpaque()
public boolean isQueryable()
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org