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

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

public class GetMap
extends java.lang.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: 26835 $, $Date: 2010-09-17 14:02:35 +0200 (Fr, 17. Sep 2010) $
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(java.util.Map<java.lang.String,java.lang.String> map, org.deegree.commons.tom.ows.Version version, MapService service)
           
GetMap(MapService service, java.util.Collection<Layer> layers, java.util.Collection<org.deegree.rendering.r2d.se.unevaluated.Style> styles, int width, int height, org.deegree.geometry.Envelope boundingBox)
           
 
Method Summary
 void addDimensionValue(java.lang.String name, java.util.List<?> values)
           
 void addFilter(java.lang.String layer, org.deegree.filter.Filter filter)
           
 java.util.Map<Layer,GetMap.Antialias> getAntialias()
           
 java.awt.Color getBgColor()
           
 org.deegree.geometry.Envelope getBoundingBox()
           
 org.deegree.cs.CRS getCoordinateSystem()
           
 java.util.HashMap<java.lang.String,java.util.List<?>> getDimensions()
           
 org.deegree.filter.Filter getFilterForLayer(java.lang.String name, org.deegree.filter.Filter filter, org.deegree.rendering.r2d.se.unevaluated.Style style)
           
 java.lang.String getFormat()
           
 int getHeight()
           
 java.util.Map<Layer,GetMap.Interpolation> getInterpolation()
           
 java.util.LinkedList<Layer> getLayers()
           
 java.util.Map<Layer,java.lang.Integer> getMaxFeatures()
           
 double getPixelSize()
           
 java.util.Map<Layer,GetMap.Quality> getQuality()
           
 double getResolution()
           
 double getScale()
           
 java.util.LinkedList<org.deegree.rendering.r2d.se.unevaluated.Style> getStyles()
           
 boolean getTransparent()
           
 int getWidth()
           
static java.util.LinkedList<?> parseDimensionValues(java.lang.String value, java.lang.String name)
           
 void setCoordinateSystem(org.deegree.cs.CRS crs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetMap

public GetMap(java.util.Map<java.lang.String,java.lang.String> map,
              org.deegree.commons.tom.ows.Version version,
              MapService service)
       throws OWSException
Parameters:
map -
version -
service -
Throws:
OWSException

GetMap

public GetMap(MapService service,
              java.util.Collection<Layer> layers,
              java.util.Collection<org.deegree.rendering.r2d.se.unevaluated.Style> styles,
              int width,
              int height,
              org.deegree.geometry.Envelope boundingBox)
Parameters:
service -
layers -
styles -
width -
height -
boundingBox -
Method Detail

parseDimensionValues

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

getCoordinateSystem

public org.deegree.cs.CRS getCoordinateSystem()
Returns:
the coordinate system of the bbox

getBoundingBox

public org.deegree.geometry.Envelope getBoundingBox()
Returns:
the bbox

getLayers

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

getStyles

public java.util.LinkedList<org.deegree.rendering.r2d.se.unevaluated.Style> getStyles()
Returns:
a copy of the styles list

getFormat

public java.lang.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 java.awt.Color getBgColor()
Returns:
the desired background color

setCoordinateSystem

public void setCoordinateSystem(org.deegree.cs.CRS crs)
Parameters:
crs -

getDimensions

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

addFilter

public void addFilter(java.lang.String layer,
                      org.deegree.filter.Filter filter)
Parameters:
layer -
filter -

addDimensionValue

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

getFilterForLayer

public org.deegree.filter.Filter getFilterForLayer(java.lang.String name,
                                                   org.deegree.filter.Filter filter,
                                                   org.deegree.rendering.r2d.se.unevaluated.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 java.util.Map<Layer,GetMap.Quality> getQuality()
Returns:
the quality settings for the layers

getInterpolation

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

getAntialias

public java.util.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 java.util.Map<Layer,java.lang.Integer> getMaxFeatures()
Returns:
the max features settings for the layers


Copyright © 2011. All Rights Reserved.