org.deegree.rendering.r3d.opengl.rendering.dem.texturing
Class WMSTextureTileProvider

java.lang.Object
  extended by org.deegree.rendering.r3d.opengl.rendering.dem.texturing.WMSTextureTileProvider
All Implemented Interfaces:
TextureTileProvider

public class WMSTextureTileProvider
extends Object
implements TextureTileProvider

TextureTileProvider that delegates tile requests to a WMS.

Version:
$Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $

Constructor Summary
WMSTextureTileProvider(URL capabilitiesURL, String[] requestedLayers, ICRS requestCRS, String requestFormat, boolean transparent, double res, int maxWidth, int maxHeight, int requestTimeout)
          Creates a new WMSTextureTileProvider instance.
 
Method Summary
 ICRS getCRS()
           
 Envelope getEnvelope()
           
 double getNativeResolution()
          Returns the provided resolution (in world units per pixel).
 TextureTile getTextureTile(TextureTileRequest request)
          Get a TextureTile best fitting the request.
 boolean hasTextureForResolution(double unitsPerPixel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMSTextureTileProvider

public WMSTextureTileProvider(URL capabilitiesURL,
                              String[] requestedLayers,
                              ICRS requestCRS,
                              String requestFormat,
                              boolean transparent,
                              double res,
                              int maxWidth,
                              int maxHeight,
                              int requestTimeout)
Creates a new WMSTextureTileProvider instance.

Parameters:
capabilitiesURL - URL of the capabilities document (usually a GetCapabilities request)
requestedLayers - name of the requested layers
requestCRS - crs for the GetMap requests
requestFormat - image format, e.g. 'image/png'
transparent - true, if the image should be requested using "transparent=true", false otherwise
res - resolution (world units per pixel)
maxWidth - maximum map width (in pixels) that the WMS allows or -1 if unconstrained
maxHeight - maximum map height (in pixels) that the WMS allows or -1 if unconstrained
requestTimeout - maximum number of seconds to wait for a WMS response or -1 if unconstrained
Method Detail

getNativeResolution

public double getNativeResolution()
Description copied from interface: TextureTileProvider
Returns the provided resolution (in world units per pixel).

Specified by:
getNativeResolution in interface TextureTileProvider
Returns:
the provided resolution

getTextureTile

public TextureTile getTextureTile(TextureTileRequest request)
Description copied from interface: TextureTileProvider
Get a TextureTile best fitting the request.

Specified by:
getTextureTile in interface TextureTileProvider
Parameters:
request - information about the request.
Returns:
a texture tile.

hasTextureForResolution

public boolean hasTextureForResolution(double unitsPerPixel)
Specified by:
hasTextureForResolution in interface TextureTileProvider
Returns:
true if a the provider could deliver a texture for the given resolution.

getEnvelope

public Envelope getEnvelope()
Specified by:
getEnvelope in interface TextureTileProvider
Returns:
the bounding box for this TextureTileProvider

getCRS

public ICRS getCRS()
Specified by:
getCRS in interface TextureTileProvider
Returns:
the crs of the texture tile provider


Copyright © 2011. All Rights Reserved.