org.deegree.protocol.wms
Class Utils
java.lang.Object
org.deegree.protocol.wms.Utils
public class Utils
- extends java.lang.Object
Utils
- Version:
- $Revision: 26154 $, $Date: 2010-08-26 09:21:15 +0200 (Do, 26. Aug 2010) $
- 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,
CoordinateSystem crs)
|
static double |
calcScaleWMS130(int mapWidth,
int mapHeight,
Envelope bbox,
CoordinateSystem crs)
|
static CRS |
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 |
Utils
public Utils()
getAutoCRS
public static CRS 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,
CoordinateSystem 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,
CoordinateSystem 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.