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

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

public class RemoteWMSLayer
extends Layer

RemoteWMSLayer

Version:
$Revision: 31728 $, $Date: 2011-09-02 12:42:50 +0200 (Fri, 02 Sep 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
RemoteWMSLayer(MapService service, AbstractLayerType layer, Layer parent)
          Construct one with RemoteWMSStoreId in jaxb bean.
RemoteWMSLayer(MapService service, RemoteWMSStore store, String name, String title, Layer parent)
           
 
Method Summary
 Pair<FeatureCollection,LinkedList<String>> getFeatures(GetFeatureInfo fi, Style style)
           
 FeatureType getFeatureType()
           
 boolean isAvailable()
           
 Pair<BufferedImage,LinkedList<String>> paintMap(GetMap gm, Style style)
           
 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, getBbox, getChild, getChildren, getDataMetadataSetId, getDimensions, getInternalName, getKeywords, getName, getParent, getScaleHint, getSrs, getTitle, isQueryable, 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

RemoteWMSLayer

public RemoteWMSLayer(MapService service,
                      AbstractLayerType layer,
                      Layer parent)
Construct one with RemoteWMSStoreId in jaxb bean.

Parameters:
service -
layer - must have a remotewmsstoreid set and resolving to a remote wms store.
parent -

RemoteWMSLayer

public RemoteWMSLayer(MapService service,
                      RemoteWMSStore store,
                      String name,
                      String title,
                      Layer parent)
Parameters:
service -
store -
name -
title -
parent -
Method Detail

isAvailable

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

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

paintMap

public Pair<BufferedImage,LinkedList<String>> paintMap(GetMap gm,
                                                       Style style)
                                                throws WMSException.MissingDimensionValue,
                                                       WMSException.InvalidDimensionValue
Overrides:
paintMap in class Layer
Returns:
a buffered image containing the map, and warning headers
Throws:
WMSException.MissingDimensionValue
WMSException.InvalidDimensionValue

getFeatures

public Pair<FeatureCollection,LinkedList<String>> getFeatures(GetFeatureInfo fi,
                                                              Style style)
Specified by:
getFeatures in class Layer
Returns:
a collection of matching features and a list of warning headers (currently only used for dimension warnings)

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.