org.deegree.commons.utils
Class MapUtils
java.lang.Object
org.deegree.commons.utils.MapUtils
public class MapUtils
- extends Object
MapUtils
Note: methods currently more or less copied from deegree 2.
- Version:
- $Revision: 19845 $, $Date: 2009-09-29 14:54:14 +0200 (Di, 29 Sep 2009) $
- Author:
- Andreas Schmitz, last edited by: $Author: mschneider $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQRT2
public static final double SQRT2
- The value of sqrt(2)
DEFAULT_PIXEL_SIZE
public static final double DEFAULT_PIXEL_SIZE
- The Value of a PixelSize
- See Also:
- Constant Field Values
MapUtils
public MapUtils()
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)
calcDistance
public static double calcDistance(double lon1,
double lat1,
double lon2,
double lat2)
- calculates the distance in meters between two points in EPSG:4326 coodinates. this is a convenience method
assuming the world is a ball
- Parameters:
lon1
- lat1
- lon2
- lat2
-
- Returns:
- the distance in meters between two points in EPSG:4326 coords
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>