org.deegree.services.wms.model.layers
Class Layer

java.lang.Object
  extended by org.deegree.services.wms.model.layers.Layer
Direct Known Subclasses:
DynamicSQLLayer, EmptyLayer, FeatureLayer, RasterLayer, RemoteWMSLayer

public abstract class Layer
extends java.lang.Object

Layer

Version:
$Revision: 28066 $, $Date: 2010-11-12 12:13:29 +0100 (Fr, 12. Nov 2010) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Constructor Summary
protected Layer(AbstractLayerType layer, Layer parent)
           
protected Layer(java.lang.String name, java.lang.String title, Layer parent)
           
 
Method Summary
 void addOrReplace(Layer layer)
           
 void close()
           
 java.lang.String getAbstract()
           
 org.deegree.geometry.Envelope getBbox()
           
 Layer getChild(java.lang.String name)
           
 java.util.LinkedList<Layer> getChildren()
           
 java.util.Map<java.lang.String,Dimension<?>> getDimensions()
           
abstract  org.deegree.commons.utils.Pair<org.deegree.feature.FeatureCollection,java.util.LinkedList<java.lang.String>> getFeatures(GetFeatureInfo fi, org.deegree.rendering.r2d.se.unevaluated.Style style)
           
abstract  org.deegree.feature.types.FeatureType getFeatureType()
           
 java.lang.String getInternalName()
           
 java.util.LinkedList<LanguageStringType> getKeywords()
           
 java.lang.String getName()
           
 Layer getParent()
           
 org.deegree.commons.utils.DoublePair getScaleHint()
           
 java.util.LinkedList<org.deegree.cs.CRS> getSrs()
           
 java.lang.String getTitle()
           
 boolean isAvailable()
           
 boolean isQueryable()
           
 org.deegree.commons.utils.Pair<java.awt.image.BufferedImage,java.util.LinkedList<java.lang.String>> paintMap(GetMap gm, org.deegree.rendering.r2d.se.unevaluated.Style style)
           
abstract  java.util.LinkedList<java.lang.String> paintMap(java.awt.Graphics2D g, GetMap gm, org.deegree.rendering.r2d.se.unevaluated.Style style)
           
 void remove(Layer l)
           
static void render(org.deegree.feature.Feature f, org.deegree.filter.XPathEvaluator<org.deegree.feature.Feature> evaluator, org.deegree.rendering.r2d.se.unevaluated.Style style, org.deegree.rendering.r2d.Renderer renderer, org.deegree.rendering.r2d.TextRenderer textRenderer, double scale, double resolution)
           
 void setAbstract(java.lang.String abstract_)
           
 void setBbox(org.deegree.geometry.Envelope bbox)
           
 void setChildren(java.util.List<Layer> children)
           
 void setInternalName(java.lang.String name)
           
 void setKeywords(java.util.Collection<LanguageStringType> keywords)
           
 void setName(java.lang.String name)
           
 void setParent(Layer parent)
           
 void setScaleHint(org.deegree.commons.utils.DoublePair scaleHint)
           
 void setSrs(java.util.Collection<org.deegree.cs.CRS> srs)
           
 void setTitle(java.lang.String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

protected Layer(java.lang.String name,
                java.lang.String title,
                Layer parent)

Layer

protected Layer(AbstractLayerType layer,
                Layer parent)
Method Detail

setInternalName

public void setInternalName(java.lang.String name)
Parameters:
name -

render

public static void render(org.deegree.feature.Feature f,
                          org.deegree.filter.XPathEvaluator<org.deegree.feature.Feature> evaluator,
                          org.deegree.rendering.r2d.se.unevaluated.Style style,
                          org.deegree.rendering.r2d.Renderer renderer,
                          org.deegree.rendering.r2d.TextRenderer textRenderer,
                          double scale,
                          double resolution)
Parameters:
f -
evaluator -
style -
renderer -
textRenderer -
scale -
resolution -

getName

public java.lang.String getName()
Returns:
the name

getInternalName

public java.lang.String getInternalName()
Returns:
the internal name (used for style lookup etc.)

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getTitle

public java.lang.String getTitle()
Returns:
the title

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - the title to set

getAbstract

public java.lang.String getAbstract()
Returns:
the abstract_

setAbstract

public void setAbstract(java.lang.String abstract_)
Parameters:
abstract_ - the abstract_ to set

getKeywords

public java.util.LinkedList<LanguageStringType> getKeywords()
Returns:
the live keywords list

setKeywords

public void setKeywords(java.util.Collection<LanguageStringType> keywords)
Parameters:
keywords - the keywords to set (will be copied)

getBbox

public org.deegree.geometry.Envelope getBbox()
Returns:
the bbox

setBbox

public void setBbox(org.deegree.geometry.Envelope bbox)
Parameters:
bbox - the bbox to set

getSrs

public java.util.LinkedList<org.deegree.cs.CRS> getSrs()
Returns:
the live list of srs

setSrs

public void setSrs(java.util.Collection<org.deegree.cs.CRS> srs)
Parameters:
srs - the srs to set (will be copied)

getScaleHint

public org.deegree.commons.utils.DoublePair getScaleHint()
Returns:
the scaleHint, SLD style

setScaleHint

public void setScaleHint(org.deegree.commons.utils.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 java.util.LinkedList<Layer> getChildren()
Returns:
the live list of children

setChildren

public void setChildren(java.util.List<Layer> children)
Parameters:
children - the new children (will be copied)

paintMap

public org.deegree.commons.utils.Pair<java.awt.image.BufferedImage,java.util.LinkedList<java.lang.String>> paintMap(GetMap gm,
                                                                                                                    org.deegree.rendering.r2d.se.unevaluated.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 java.util.LinkedList<java.lang.String> paintMap(java.awt.Graphics2D g,
                                                                GetMap gm,
                                                                org.deegree.rendering.r2d.se.unevaluated.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 org.deegree.commons.utils.Pair<org.deegree.feature.FeatureCollection,java.util.LinkedList<java.lang.String>> getFeatures(GetFeatureInfo fi,
                                                                                                                                         org.deegree.rendering.r2d.se.unevaluated.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(java.lang.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 org.deegree.feature.types.FeatureType getFeatureType()
Returns:
the feature type, or null, if not applicable

getDimensions

public java.util.Map<java.lang.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.