org.deegree.commons.utils
Class MapUtils

java.lang.Object
  extended by org.deegree.commons.utils.MapUtils

public class MapUtils
extends Object

MapUtils Note: methods currently more or less copied from deegree 2.

Version:
$Revision: 22955 $, $Date: 2010-03-10 12:54:52 +0100 (Wed, 10 Mar 2010) $
Author:
Andreas Schmitz, last edited by: $Author: rbezema $

Field Summary
static double DEFAULT_PIXEL_SIZE
          The Value of a PixelSize
static double SQRT2
          The value of sqrt(2)
 
Constructor Summary
MapUtils()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MapUtils

public MapUtils()
Method Detail

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


Copyright © 2011. All Rights Reserved.