org.deegree.protocol.wms
Class Utils

java.lang.Object
  extended by org.deegree.protocol.wms.Utils

public class Utils
extends Object

Utils

Version:
$Revision: 30118 $, $Date: 2011-03-22 10:01:37 +0100 (Tue, 22 Mar 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Constructor Summary
Utils()
           
 
Method Summary
static double calcResolution(Envelope env, int width, int height)
           
static double calcScaleWMS111(int mapWidth, int mapHeight, Envelope bbox, ICRS crs)
           
static double calcScaleWMS130(int mapWidth, int mapHeight, Envelope bbox, ICRS crs)
           
static ICRS getAutoCRS(int id, double lon0, double lat0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getAutoCRS

public static ICRS getAutoCRS(int id,
                              double lon0,
                              double lat0)
Parameters:
id -
lon0 -
lat0 -
Returns:
the corresponding auto generated crs

calcScaleWMS111

public static double calcScaleWMS111(int mapWidth,
                                     int mapHeight,
                                     Envelope bbox,
                                     ICRS crs)
Parameters:
mapWidth -
mapHeight -
bbox -
crs -
Returns:
the WMS 1.1.1 scale (size of the diagonal pixel)

calcScaleWMS130

public static double calcScaleWMS130(int mapWidth,
                                     int mapHeight,
                                     Envelope bbox,
                                     ICRS crs)
Parameters:
mapWidth -
mapHeight -
bbox -
crs -
Returns:
the WMS 1.3.0 scale (horizontal size of the pixel, pixel size == 0.28mm)

calcResolution

public static double calcResolution(Envelope env,
                                    int width,
                                    int height)
Parameters:
env -
width -
height -
Returns:
max(resx, resy)


Copyright © 2011. All Rights Reserved.