org.deegree.protocol.wms.ops
Class GetMap

java.lang.Object
  extended by org.deegree.protocol.wms.ops.GetMap

public class GetMap
extends Object

Not all of the protocol checking is done here, as the available dimensions, layers and styles are not known.

Version:
$Revision: 31400 $, $Date: 2011-08-02 10:11:48 +0200 (Tue, 02 Aug 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
GetMap(Collection<String> layers, Collection<String> styles, int width, int height, Envelope boundingBox)
           
GetMap(List<Pair<String,String>> layers, int width, int height, Envelope boundingBox, String format, boolean transparent)
           
GetMap(List<String> layers, int width, int height, Envelope envelope, ICRS coordinateSystem, String format, boolean transparent)
           
GetMap(Map<String,String> map, Version version)
           
 
Method Summary
 void addDimensionValue(String name, List<?> values)
           
 Color getBgColor()
           
 Envelope getBoundingBox()
           
 ICRS getCoordinateSystem()
           
static ICRS getCRS111(String crs)
           
static ICRS getCRS130(String crs)
           
static Envelope getCRSAndEnvelope130(String crs, double[] bbox)
           
 HashMap<String,List<?>> getDimensions()
           
 String getFormat()
           
 int getHeight()
           
 LinkedList<String> getLayers()
           
 Map<String,String> getParameterMap()
           
 double getPixelSize()
           
 double getResolution()
           
 double getScale()
           
 LinkedList<String> getStyles()
           
 boolean getTransparent()
           
 int getWidth()
           
 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)
       throws OWSException
Parameters:
map -
version -
service -
Throws:
OWSException

GetMap

public GetMap(Collection<String> layers,
              Collection<String> styles,
              int width,
              int height,
              Envelope boundingBox)
Parameters:
service -
layers -
styles -
width -
height -
boundingBox -

GetMap

public GetMap(List<String> layers,
              int width,
              int height,
              Envelope envelope,
              ICRS coordinateSystem,
              String format,
              boolean transparent)

GetMap

public GetMap(List<Pair<String,String>> layers,
              int width,
              int height,
              Envelope boundingBox,
              String format,
              boolean transparent)
Method Detail

getCRS111

public static ICRS getCRS111(String crs)
Parameters:
crs -
Returns:
the auto crs as defined in WMS 1.1.1 spec Annex E

getCRS130

public static ICRS getCRS130(String crs)
Parameters:
crs -
Returns:
a new CRS

getCRSAndEnvelope130

public static Envelope getCRSAndEnvelope130(String crs,
                                            double[] bbox)
Parameters:
crs -
bbox -
Returns:
a new CRS

getCoordinateSystem

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

getBoundingBox

public Envelope getBoundingBox()
Returns:
the bbox

getLayers

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

getStyles

public LinkedList<String> 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

addDimensionValue

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

getScale

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

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

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.