org.deegree.services.wms.model.layers
Class Layer
java.lang.Object
org.deegree.services.wms.model.layers.Layer
- Direct Known Subclasses:
- DynamicSQLLayer, EmptyLayer, FeatureLayer, RasterLayer, RemoteWMSLayer
public abstract class Layer
- extends Object
Layer
- Version:
- $Revision: 32149 $, $Date: 2011-10-18 14:54:41 +0200 (Tue, 18 Oct 2011) $
- Author:
- Andreas Schmitz, last edited by: $Author: aschmitz $
Method Summary |
void |
addOrReplace(Layer layer)
|
void |
close()
|
String |
getAbstract()
|
String |
getAuthorityIdentifier()
|
String |
getAuthorityURL()
|
Envelope |
getBbox()
|
Layer |
getChild(String name)
|
LinkedList<Layer> |
getChildren()
|
String |
getDataMetadataSetId()
|
Map<String,Dimension<?>> |
getDimensions()
|
abstract Pair<FeatureCollection,LinkedList<String>> |
getFeatures(GetFeatureInfo fi,
Style style)
|
abstract FeatureType |
getFeatureType()
|
String |
getInternalName()
|
LinkedList<Pair<CodeType,LanguageStringType>> |
getKeywords()
|
String |
getName()
|
Layer |
getParent()
|
DoublePair |
getScaleHint()
|
LinkedList<ICRS> |
getSrs()
|
String |
getTitle()
|
boolean |
isAvailable()
|
boolean |
isQueryable()
|
Pair<BufferedImage,LinkedList<String>> |
paintMap(GetMap gm,
Style style)
|
abstract LinkedList<String> |
paintMap(Graphics2D g,
GetMap gm,
Style style)
|
void |
remove(Layer l)
|
static void |
render(Feature f,
XPathEvaluator<Feature> evaluator,
Style style,
Renderer renderer,
TextRenderer textRenderer,
double scale,
double resolution)
|
void |
setAbstract(String abstract_)
|
void |
setAuthorityIdentifier(String authorityIdentifier)
|
void |
setAuthorityURL(String authorityURL)
|
void |
setBbox(Envelope bbox)
|
void |
setChildren(List<Layer> children)
|
void |
setInternalName(String name)
|
void |
setKeywords(Collection<Pair<CodeType,LanguageStringType>> keywords)
|
void |
setName(String name)
|
void |
setParent(Layer parent)
|
void |
setScaleHint(DoublePair scaleHint)
|
void |
setSrs(Collection<ICRS> srs)
|
void |
setTitle(String title)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
service
protected MapService service
Layer
protected Layer(MapService service,
String name,
String title,
Layer parent)
Layer
protected Layer(MapService service,
AbstractLayerType layer,
Layer parent)
setInternalName
public void setInternalName(String name)
- Parameters:
name
-
getDataMetadataSetId
public String getDataMetadataSetId()
getAuthorityURL
public String getAuthorityURL()
getAuthorityIdentifier
public String getAuthorityIdentifier()
setAuthorityURL
public void setAuthorityURL(String authorityURL)
setAuthorityIdentifier
public void setAuthorityIdentifier(String authorityIdentifier)
render
public static void render(Feature f,
XPathEvaluator<Feature> evaluator,
Style style,
Renderer renderer,
TextRenderer textRenderer,
double scale,
double resolution)
- Parameters:
f
- evaluator
- style
- renderer
- textRenderer
- scale
- resolution
-
getName
public String getName()
- Returns:
- the name
getInternalName
public String getInternalName()
- Returns:
- the internal name (used for style lookup etc.)
setName
public void setName(String name)
- Parameters:
name
- the name to set
getTitle
public String getTitle()
- Returns:
- the title
setTitle
public void setTitle(String title)
- Parameters:
title
- the title to set
getAbstract
public String getAbstract()
- Returns:
- the abstract_
setAbstract
public void setAbstract(String abstract_)
- Parameters:
abstract_
- the abstract_ to set
getKeywords
public LinkedList<Pair<CodeType,LanguageStringType>> getKeywords()
- Returns:
- the live keywords list
setKeywords
public void setKeywords(Collection<Pair<CodeType,LanguageStringType>> keywords)
- Parameters:
keywords
- the keywords to set (will be copied)
getBbox
public Envelope getBbox()
- Returns:
- the bbox
setBbox
public void setBbox(Envelope bbox)
- Parameters:
bbox
- the bbox to set
getSrs
public LinkedList<ICRS> getSrs()
- Returns:
- the live list of srs
setSrs
public void setSrs(Collection<ICRS> srs)
- Parameters:
srs
- the srs to set (will be copied)
getScaleHint
public DoublePair getScaleHint()
- Returns:
- the scaleHint, SLD style
setScaleHint
public void setScaleHint(DoublePair scaleHint)
- Parameters:
scaleHint
- the scaleHint to set, SLD style
getParent
public Layer getParent()
- Returns:
- the parent layer, or null
setParent
public void setParent(Layer parent)
- Parameters:
parent
- the parent to set
getChildren
public LinkedList<Layer> getChildren()
- Returns:
- the live list of children
setChildren
public void setChildren(List<Layer> children)
- Parameters:
children
- the new children (will be copied)
paintMap
public Pair<BufferedImage,LinkedList<String>> paintMap(GetMap gm,
Style style)
throws WMSException.MissingDimensionValue,
WMSException.InvalidDimensionValue
- Parameters:
gm
- style
-
- Returns:
- a buffered image containing the map, and warning headers
- Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue
paintMap
public abstract LinkedList<String> paintMap(Graphics2D g,
GetMap gm,
Style style)
throws WMSException.MissingDimensionValue,
WMSException.InvalidDimensionValue
- Parameters:
g
- gm
- style
-
- Returns:
- a list of warning headers (currently only used for dimension warnings)
- Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue
getFeatures
public abstract Pair<FeatureCollection,LinkedList<String>> getFeatures(GetFeatureInfo fi,
Style style)
throws WMSException.MissingDimensionValue,
WMSException.InvalidDimensionValue
- Parameters:
fi
- style
-
- Returns:
- a collection of matching features and a list of warning headers (currently only used for dimension
warnings)
- Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue
getChild
public Layer getChild(String name)
- Parameters:
name
-
- Returns:
- null, or the layer with the given name
close
public void close()
addOrReplace
public void addOrReplace(Layer layer)
- Parameters:
layer
-
isAvailable
public boolean isAvailable()
- Returns:
- true if it's data source is currently available
remove
public void remove(Layer l)
- Parameters:
l
-
getFeatureType
public abstract FeatureType getFeatureType()
- Returns:
- the feature type, or null, if not applicable
getDimensions
public Map<String,Dimension<?>> getDimensions()
- Returns:
- all dimensions including time and elevation (if applicable)
isQueryable
public boolean isQueryable()
- Returns:
- false, if queryable has been turned off
Copyright © 2011. All Rights Reserved.