|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cm.osm2po.sd.routing.SdGeoUtils
public class SdGeoUtils
Field Summary | |
---|---|
static double |
DEG
|
static double |
EPSG_900913_CONST
|
static double |
GRAD_KM
|
static double |
PI_HALF
|
static double |
RAD
|
static double |
RAD_HALF
|
static double |
RADIUS_EARTH_KM
|
Method Summary | |
---|---|
static double |
calcClockAngle(long coord1,
long coord2)
Calculates the angle between two points, while taking the cosine into account for accurate mercator like projections. |
static double |
calcDistanceEuklid(double lat1,
double lon1,
double lat2,
double lon2)
Calculates the real distance between two points. |
static double |
calcDistanceFast(float lat1,
float lon1,
float lat2,
float lon2)
Calculates the real distance between two points. |
static double |
calcDistanceSphere(double lat1,
double lon1,
double lat2,
double lon2)
Calculates the real distance between two points. |
static double |
calcDistanceSphere(long coord1,
long coord2)
Calculates the real distance between two points. |
static double |
calcLengthKm(long[] coords)
|
static double |
calcTurnAngle(long coord1,
long coord2)
Calculates the angle between two points, while taking the cosine into account for accurate mercator like projections. |
static float |
cosDeg(float deg)
|
static float |
cosRad(float rad)
|
static int |
createZoneId(double lat,
double lon)
Snaps a coordinate onto a 0.01-Degrees-Grid. |
static double |
EPSG_4326_TO_900913_Lat(double lat)
|
static double |
EPSG_4326_TO_900913_Lon(double lon)
|
static double |
EPSG_900913_TO_4326_Lat(double lat)
|
static double |
EPSG_900913_TO_4326_Lon(double lon)
|
static int[] |
expandZone(int zoneId,
int r)
Expands a zone with surrounding zones. |
static long |
toCoord(double lat,
double lon)
|
static double |
toLat(long latLon)
|
static double |
toLon(long latLon)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double RADIUS_EARTH_KM
public static final double GRAD_KM
public static final double EPSG_900913_CONST
public static final double PI_HALF
public static final double RAD
public static final double DEG
public static final double RAD_HALF
Method Detail |
---|
public static final float cosRad(float rad)
public static final float cosDeg(float deg)
public static double calcDistanceSphere(long coord1, long coord2)
calcDistanceSphere(double, double, double, double)
coord1
- long codedcoord2
- long coded
public static double calcDistanceSphere(double lat1, double lon1, double lat2, double lon2)
lat1
- y1 doublelon1
- x1 doublelat2
- y2 doublelon2
- x2 double
calcDistanceEuklid(double, double, double, double)
public static double calcDistanceEuklid(double lat1, double lon1, double lat2, double lon2)
lat1
- y1 doublelon1
- x1 doublelat2
- y2 doublelon2
- x2 double
calcDistanceSphere(double, double, double, double)
public static double calcDistanceFast(float lat1, float lon1, float lat2, float lon2)
lat1
- y1 floatlon1
- x1 floatlat2
- y2 floatlon2
- x2 float
calcDistanceEuklid(double, double, double, double)
public static int createZoneId(double lat, double lon)
lat
- doublelon
- double
public static int[] expandZone(int zoneId, int r)
zoneId
- intr
- int number of zone thickness.
public static double EPSG_4326_TO_900913_Lon(double lon)
public static double EPSG_900913_TO_4326_Lon(double lon)
public static double EPSG_4326_TO_900913_Lat(double lat)
public static double EPSG_900913_TO_4326_Lat(double lat)
public static long toCoord(double lat, double lon)
public static double toLat(long latLon)
public static double toLon(long latLon)
public static double calcLengthKm(long[] coords)
public static double calcClockAngle(long coord1, long coord2)
calcTurnAngle(long, long)
and applies a simple
correction.
coord1
- long coded.coord2
- long coded.
public static double calcTurnAngle(long coord1, long coord2)
coord1
- long coded.coord2
- long coded.
|
osm2po-sd-5.0.0 (c) December 24 2014 Carsten Moeller - info@osm2po.de | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |