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

java.lang.Object
  extended by org.deegree.services.wms.model.layers.Layer
      extended by org.deegree.services.wms.model.layers.FeatureLayer
Direct Known Subclasses:
StatisticsLayer

public class FeatureLayer
extends Layer

ShapefileLayer

Version:
$Revision: 28771 $, $Date: 2010-12-15 10:15:03 +0100 (Mi, 15. Dez 2010) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Constructor Summary
FeatureLayer(AbstractLayerType layer, Layer parent, org.deegree.commons.xml.XMLAdapter adapter)
           
FeatureLayer(java.lang.String name, java.lang.String title, Layer parent)
          Used for extensions.
FeatureLayer(java.lang.String name, java.lang.String title, Layer parent, java.lang.String file)
           
 
Method Summary
 void close()
           
 java.util.LinkedList<java.lang.String> collectQueries(org.deegree.rendering.r2d.se.unevaluated.Style style, GetMap gm, java.util.LinkedList<org.deegree.feature.persistence.query.Query> queries)
           
 org.deegree.geometry.Envelope getBbox()
           
 org.deegree.feature.persistence.FeatureStore getDataStore()
           
protected  org.deegree.commons.utils.Pair<org.deegree.filter.Filter,java.util.LinkedList<java.lang.String>> getDimensionFilter(java.util.HashMap<java.lang.String,java.util.List<?>> dims)
           
 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)
           
 org.deegree.feature.types.FeatureType getFeatureType()
           
 boolean isAvailable()
           
 java.util.LinkedList<java.lang.String> paintMap(java.awt.Graphics2D g, GetMap gm, org.deegree.rendering.r2d.se.unevaluated.Style style)
           
 java.lang.String toString()
           
 
Methods inherited from class org.deegree.services.wms.model.layers.Layer
addOrReplace, getAbstract, getChild, getChildren, getDimensions, getInternalName, getKeywords, getName, getParent, getScaleHint, getSrs, getTitle, isQueryable, paintMap, remove, render, setAbstract, setBbox, setChildren, setInternalName, setKeywords, setName, setParent, setScaleHint, setSrs, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureLayer

public FeatureLayer(AbstractLayerType layer,
                    Layer parent,
                    org.deegree.commons.xml.XMLAdapter adapter)
             throws java.io.FileNotFoundException,
                    java.net.MalformedURLException,
                    java.io.IOException
Parameters:
layer -
parent -
adapter -
Throws:
java.io.IOException
java.net.MalformedURLException
java.io.FileNotFoundException

FeatureLayer

public FeatureLayer(java.lang.String name,
                    java.lang.String title,
                    Layer parent)
Used for extensions.

Parameters:
name -
title -
parent -

FeatureLayer

public FeatureLayer(java.lang.String name,
                    java.lang.String title,
                    Layer parent,
                    java.lang.String file)
             throws java.io.FileNotFoundException,
                    java.io.IOException
Parameters:
name -
title -
parent -
file -
Throws:
java.io.IOException
java.io.FileNotFoundException
Method Detail

getBbox

public org.deegree.geometry.Envelope getBbox()
Overrides:
getBbox in class Layer
Returns:
the bbox

close

public void close()
Overrides:
close in class Layer

getDataStore

public org.deegree.feature.persistence.FeatureStore getDataStore()
Returns:
the underlying feature store

collectQueries

public java.util.LinkedList<java.lang.String> collectQueries(org.deegree.rendering.r2d.se.unevaluated.Style style,
                                                             GetMap gm,
                                                             java.util.LinkedList<org.deegree.feature.persistence.query.Query> queries)
                                                      throws WMSException.MissingDimensionValue,
                                                             WMSException.InvalidDimensionValue
Parameters:
style -
gm -
queries -
Returns:
a list of dimension warnings
Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue

paintMap

public 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
Specified by:
paintMap in class Layer
Returns:
a list of warning headers (currently only used for dimension warnings)
Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue

isAvailable

public boolean isAvailable()
Overrides:
isAvailable in class Layer
Returns:
true if it's data source is currently available

getFeatures

public 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
Specified by:
getFeatures in class Layer
Returns:
a collection of matching features and a list of warning headers (currently only used for dimension warnings)
Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue

getDimensionFilter

protected org.deegree.commons.utils.Pair<org.deegree.filter.Filter,java.util.LinkedList<java.lang.String>> getDimensionFilter(java.util.HashMap<java.lang.String,java.util.List<?>> dims)
                                                                                                                       throws WMSException.MissingDimensionValue,
                                                                                                                              WMSException.InvalidDimensionValue
Parameters:
dims -
Returns:
a filter or null, if no dimensions have been requested
Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue

getFeatureType

public org.deegree.feature.types.FeatureType getFeatureType()
Specified by:
getFeatureType in class Layer
Returns:
the feature type, or null, if not applicable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.