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

java.lang.Object
  extended by org.deegree.services.wms.model.layers.Layer
      extended by org.deegree.services.wms.model.layers.DynamicSQLLayer

public class DynamicSQLLayer
extends Layer

DynamicSQLLayer

Version:
$Revision: 31688 $, $Date: 2011-08-30 15:05:12 +0200 (Tue, 30 Aug 2011) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.services.wms.model.layers.Layer
service
 
Constructor Summary
DynamicSQLLayer(MapService service, String name, String title, Layer parent, SimpleSQLFeatureStore datastore, PostgreSQLReader styles, Collection<Integer> symbolCodes, String symbolField)
           
 
Method Summary
 Envelope getBbox()
           
 Pair<FeatureCollection,LinkedList<String>> getFeatures(GetFeatureInfo fi, Style style)
           
 FeatureType getFeatureType()
           
 LinkedList<String> paintMap(Graphics2D g, GetMap gm, Style style)
           
 String toString()
           
 
Methods inherited from class org.deegree.services.wms.model.layers.Layer
addOrReplace, close, getAbstract, getAuthorityIdentifier, getAuthorityURL, getChild, getChildren, getDataMetadataSetId, getDimensions, getInternalName, getKeywords, getName, getParent, getScaleHint, getSrs, getTitle, isAvailable, 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

DynamicSQLLayer

public DynamicSQLLayer(MapService service,
                       String name,
                       String title,
                       Layer parent,
                       SimpleSQLFeatureStore datastore,
                       PostgreSQLReader styles,
                       Collection<Integer> symbolCodes,
                       String symbolField)
Parameters:
name -
title -
parent -
datastore -
styles -
symbolCodes -
symbolField -
Method Detail

getBbox

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

getFeatureType

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

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

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.