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: 32135 $, $Date: 2011-10-12 15:12:41 +0200 (Wed, 12 Oct 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Field Summary
 
Fields inherited from class org.deegree.services.wms.model.layers.Layer
service
 
Constructor Summary
FeatureLayer(MapService service, AbstractLayerType layer, Layer parent, DeegreeWorkspace workspace)
           
FeatureLayer(MapService service, String name, String title, Layer parent)
          Used for extensions.
FeatureLayer(MapService service, String name, String title, Layer parent, String file)
           
 
Method Summary
 void close()
           
 LinkedList<String> collectQueries(Style style, GetMap gm, LinkedList<Query> queries)
           
 Envelope getBbox()
           
 FeatureStore getDataStore()
           
protected  Pair<Filter,LinkedList<String>> getDimensionFilter(HashMap<String,List<?>> dims)
           
 Pair<FeatureCollection,LinkedList<String>> getFeatures(GetFeatureInfo fi, Style style)
           
 FeatureType getFeatureType()
           
 boolean isAvailable()
           
 LinkedList<String> paintMap(Graphics2D g, GetMap gm, Style style)
           
 String toString()
           
 
Methods inherited from class org.deegree.services.wms.model.layers.Layer
addOrReplace, getAbstract, getAuthorityIdentifier, getAuthorityURL, getChild, getChildren, getDataMetadataSetId, getDimensions, getInternalName, getKeywords, getName, getParent, getScaleHint, getSrs, getTitle, isQueryable, paintMap, remove, render, setAbstract, setAuthorityIdentifier, setAuthorityURL, 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(MapService service,
                    AbstractLayerType layer,
                    Layer parent,
                    DeegreeWorkspace workspace)
Parameters:
layer -
parent -

FeatureLayer

public FeatureLayer(MapService service,
                    String name,
                    String title,
                    Layer parent)
Used for extensions.

Parameters:
name -
title -
parent -

FeatureLayer

public FeatureLayer(MapService service,
                    String name,
                    String title,
                    Layer parent,
                    String file)
Parameters:
name -
title -
parent -
file -
Method Detail

getBbox

public Envelope getBbox()
Overrides:
getBbox in class Layer
Returns:
the bbox

close

public void close()
Overrides:
close in class Layer

getDataStore

public FeatureStore getDataStore()
Returns:
the underlying feature store

collectQueries

public LinkedList<String> collectQueries(Style style,
                                         GetMap gm,
                                         LinkedList<Query> queries)
                                  throws WMSException.MissingDimensionValue,
                                         WMSException.InvalidDimensionValue
Parameters:
style -
gm -
queries -
Returns:
a list of dimension warnings
Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue

paintMap

public LinkedList<String> paintMap(Graphics2D g,
                                   GetMap gm,
                                   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 Pair<FeatureCollection,LinkedList<String>> getFeatures(GetFeatureInfo fi,
                                                              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 Pair<Filter,LinkedList<String>> getDimensionFilter(HashMap<String,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 FeatureType getFeatureType()
Specified by:
getFeatureType in class Layer
Returns:
the feature type, or null, if not applicable

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.