org.geotools.map
Class WMSMapLayer

Object
  extended by MapLayer
      extended by WMSMapLayer

Deprecated. Please use WMSLayer instead

public class WMSMapLayer
extends MapLayer

Wraps a WMS layer into a MapLayer for interactive rendering usage TODO: expose a GetFeatureInfo that returns a feature collection TODO: expose the list of named styles and allow choosing which style to use

Author:
Andrea Aime - OpenGeo

Field Summary
 
Fields inherited from class MapLayer
internal
 
Constructor Summary
WMSMapLayer(WebMapServer wms, Layer layer)
          Deprecated. Builds a new WMS layer
 
Method Summary
 void addLayer(Layer layer)
          Deprecated. Allows to add another WMS layer into the GetMap requests
 void dispose()
          Deprecated.  
 ReferencedEnvelope getBounds()
          Deprecated. find out the bounds of the layer
 CoordinateReferenceSystem getCoordinateReferenceSystem()
          Deprecated. Returns the CRS used to make requests to the remote WMS
 InputStream getFeatureInfo(DirectPosition2D pos, String infoFormat, int featureCount)
          Deprecated. Retrieves the feature info as a generic input stream, it's the duty of the caller to interpret the contents and ensure the stream is closed feature info format)
 InputStream getFeatureInfo(ReferencedEnvelope bbox, int width, int height, int x, int y, String infoFormat, int featureCount)
          Deprecated. Allows to run a standalone GetFeatureInfo request, without the need to have previously run a GetMap request on this layer.
 String getFeatureInfoAsText(DirectPosition2D pos, int featureCount)
          Deprecated. Retrieves the feature info as text (assuming "text/plain" is a supported feature info format)
 GetMapRequest getLastGetMap()
          Deprecated. Returns last GetMap request performed by this layer
 WebMapServer getWebMapServer()
          Deprecated. Returns the WebMapServer used by this layer
 List<Layer> getWMSLayers()
          Deprecated. Returns the WMS Layer used by this layer
 boolean isNativelySupported(CoordinateReferenceSystem crs)
          Deprecated. Returns true if the specified CRS can be used directly to perform WMS requests.
 
Methods inherited from class MapLayer
addMapLayerListener, equals, getFeatureSource, getQuery, getSource, getStyle, getTitle, hashCode, isSelected, isVisible, removeMapLayerListener, setQuery, setSelected, setStyle, setTitle, setVisible, toLayer, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WMSMapLayer

public WMSMapLayer(WebMapServer wms,
                   Layer layer)
Deprecated. 
Builds a new WMS layer

Parameters:
wms -
layer -
Method Detail

dispose

public void dispose()
Deprecated. 
See Also:
Layer.dispose()

getBounds

public ReferencedEnvelope getBounds()
Deprecated. 
Description copied from class: MapLayer
find out the bounds of the layer

Overrides:
getBounds in class MapLayer
Returns:
- the layer's bounds

getFeatureInfoAsText

public String getFeatureInfoAsText(DirectPosition2D pos,
                                   int featureCount)
                            throws IOException
Deprecated. 
Retrieves the feature info as text (assuming "text/plain" is a supported feature info format)

Parameters:
pos - the position to be checked, in real world coordinates
Returns:
Throws:
IOException

getFeatureInfo

public InputStream getFeatureInfo(DirectPosition2D pos,
                                  String infoFormat,
                                  int featureCount)
                           throws IOException
Deprecated. 
Retrieves the feature info as a generic input stream, it's the duty of the caller to interpret the contents and ensure the stream is closed feature info format)

Parameters:
pos - the position to be checked, in real world coordinates
infoFormat - The INFO_FORMAT parameter in the GetFeatureInfo request
Returns:
Throws:
IOException

getFeatureInfo

public InputStream getFeatureInfo(ReferencedEnvelope bbox,
                                  int width,
                                  int height,
                                  int x,
                                  int y,
                                  String infoFormat,
                                  int featureCount)
                           throws IOException
Deprecated. 
Allows to run a standalone GetFeatureInfo request, without the need to have previously run a GetMap request on this layer. Mostly useful for stateless users that rebuild the map context for each rendering operation (e.g., GeoServer)

Parameters:
pos -
infoFormat - The INFO_FORMAT parameter in the GetFeatureInfo request
Returns:
Throws:
IOException

getWebMapServer

public WebMapServer getWebMapServer()
Deprecated. 
Returns the WebMapServer used by this layer

Returns:

getWMSLayers

public List<Layer> getWMSLayers()
Deprecated. 
Returns the WMS Layer used by this layer

Returns:

getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem()
Deprecated. 
Returns the CRS used to make requests to the remote WMS

Returns:

getLastGetMap

public GetMapRequest getLastGetMap()
Deprecated. 
Returns last GetMap request performed by this layer

Returns:

addLayer

public void addLayer(Layer layer)
Deprecated. 
Allows to add another WMS layer into the GetMap requests

Parameters:
layer -

isNativelySupported

public boolean isNativelySupported(CoordinateReferenceSystem crs)
Deprecated. 
Returns true if the specified CRS can be used directly to perform WMS requests. Natively supported crs will provide the best rendering quality as no client side reprojection is necessary, the image coming from the WMS server will be used as-is

Parameters:
crs -
Returns:


Copyright © 1996-2014 Geotools. All Rights Reserved.