org.deegree.services.wms.controller.ops
Class GetMap

java.lang.Object
  extended by org.deegree.services.wms.controller.ops.GetMap

public class GetMap
extends Object

Constructors must make sure there is an equal number of layers and styles, the VSP maps are filled, and the scale/resolution are calculated properly. Also, with/height and envelope must obviously be set to reasonable values.

Version:
$Revision: 32135 $, $Date: 2011-10-12 15:12:41 +0200 (Wed, 12 Oct 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Nested Class Summary
static class GetMap.Antialias
          Antialias
static class GetMap.Interpolation
          Interpolation
static class GetMap.Quality
          Quality
 
Constructor Summary
GetMap(Map<String,String> map, Version version, MapService service)
           
GetMap(MapService service, Collection<Layer> layers, Collection<Style> styles, int width, int height, Envelope boundingBox)
           
 
Method Summary
 void addDimensionValue(String name, List<?> values)
           
 void addFilter(String layer, Filter filter)
           
 Map<Layer,GetMap.Antialias> getAntialias()
           
 Color getBgColor()
           
 Envelope getBoundingBox()
           
 ICRS getCoordinateSystem()
           
 HashMap<String,List<?>> getDimensions()
           
 Filter getFilterForLayer(String name, Filter filter, Style style)
           
 String getFormat()
           
 int getHeight()
           
 Map<Layer,GetMap.Interpolation> getInterpolation()
           
 LinkedList<Layer> getLayers()
           
 Map<Layer,Integer> getMaxFeatures()
           
 Map<String,String> getParameterMap()
           
 double getPixelSize()
           
 Map<Layer,GetMap.Quality> getQuality()
           
 double getResolution()
           
 double getScale()
           
static OperatorFilter getStyleFilters(Style style, double scale)
           
 LinkedList<Style> getStyles()
           
 boolean getTransparent()
           
 int getWidth()
           
static LinkedList<?> parseDimensionValues(String value, String name)
           
 void setCoordinateSystem(ICRS crs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMap

public GetMap(Map<String,String> map,
              Version version,
              MapService service)
       throws OWSException
Parameters:
map -
version -
service -
Throws:
OWSException

GetMap

public GetMap(MapService service,
              Collection<Layer> layers,
              Collection<Style> styles,
              int width,
              int height,
              Envelope boundingBox)
Parameters:
service -
layers -
styles -
width -
height -
boundingBox -
Method Detail

parseDimensionValues

public static LinkedList<?> parseDimensionValues(String value,
                                                 String name)
                                          throws OWSException
Parameters:
value -
name -
Returns:
the parsed list of strings or intervals
Throws:
OWSException

getCoordinateSystem

public ICRS getCoordinateSystem()
Returns:
the coordinate system of the bbox

getBoundingBox

public Envelope getBoundingBox()
Returns:
the bbox

getLayers

public LinkedList<Layer> getLayers()
Returns:
a copy of the layers list

getStyles

public LinkedList<Style> getStyles()
Returns:
a copy of the styles list

getFormat

public String getFormat()
Returns:
the image format

getWidth

public int getWidth()
Returns:
the width

getHeight

public int getHeight()
Returns:
the height

getTransparent

public boolean getTransparent()
Returns:
the transparent parameter

getBgColor

public Color getBgColor()
Returns:
the desired background color

setCoordinateSystem

public void setCoordinateSystem(ICRS crs)
Parameters:
crs -

getDimensions

public HashMap<String,List<?>> getDimensions()
Returns:
returns a map with the requested dimension values

addFilter

public void addFilter(String layer,
                      Filter filter)
Parameters:
layer -
filter -

addDimensionValue

public void addDimensionValue(String name,
                              List<?> values)
Parameters:
name -
values -

getStyleFilters

public static OperatorFilter getStyleFilters(Style style,
                                             double scale)

getFilterForLayer

public Filter getFilterForLayer(String name,
                                Filter filter,
                                Style style)
Parameters:
name -
filter -
style -
Returns:
a new filter for the layer, fulfilling the filter parameter as well

getScale

public double getScale()
Returns:
the scale as WMS 1.3.0/SLD scale

getQuality

public Map<Layer,GetMap.Quality> getQuality()
Returns:
the quality settings for the layers

getInterpolation

public Map<Layer,GetMap.Interpolation> getInterpolation()
Returns:
the interpolation settings for the layers

getAntialias

public Map<Layer,GetMap.Antialias> getAntialias()
Returns:
the antialias settings for the layers

getPixelSize

public double getPixelSize()
Returns:
the value of the pixel size parameter (default is 0.28 mm).

getResolution

public double getResolution()
Returns:
max(horizontal/vertical) resolution

getMaxFeatures

public Map<Layer,Integer> getMaxFeatures()
Returns:
the max features settings for the layers

getParameterMap

public Map<String,String> getParameterMap()
Returns:
the KVP map of parameters. May not be accurate/empty, especially if this object has been created by some other means than a KVP request.


Copyright © 2011. All Rights Reserved.