|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.prodevelop.geodetic.utils.conversion.GeoUtils
Some utility functions for converdion purposes.
Elipsoide
Field Summary | |
static java.lang.String[] |
CRS_CODE_KNOWN
Known projection IDs: Geo WGS84, Geo ED50 + UTM - ED50 - zone 27N - 39N + UTM - WGS84 - zone 1N - 60N + UTM - WGS84 - zone 1S - 60S |
static double |
Degree
Useful constants |
static double |
HalfPi
Useful constants |
static double |
SQ_METERS_LIMIT
Useful constants |
static double |
SqKm
Useful constants |
static double |
SqM
Useful constants |
static double |
SqMi
Useful constants |
Constructor Summary | |
GeoUtils()
|
Method Summary | |
static double |
distance(double x1,
double y1,
double x2,
double y2)
Gets the Euclidean distance between points A and B. |
static double |
getAreaInSquareMeters(java.awt.geom.PathIterator pit,
java.lang.String _srs)
Gets the area in square meters of the given path iterator, given its SRS |
static double[] |
getIteratorLengthAndLast(java.awt.geom.PathIterator piter)
Gets the length of the path iterator and of the last of its arcs. |
static double[] |
getIteratorLengthAndLast(java.awt.geom.PathIterator pit,
java.lang.String _srs)
Gets the length in meters of a path iterator and the length of the last of its arcs, given the SRS |
static double |
getScale(Projection p,
double distance_in_proj_units,
double distance_in_map_in_meters)
This method computes the scale of a map. |
static int |
getZone(IProjection p)
Utility method to get the zone of a UTM projection. |
static java.lang.String |
inTwoDigits(int n)
|
static boolean |
isInED50Meters(IProjection p)
Utility method to find out if the given projection is in meters and in ED50. |
static boolean |
isInWGS84Meters(IProjection p)
Utility method to find out if the given projection is in meters and in ED50. |
static boolean |
isLatLonProjection(java.lang.String abbrev)
|
static double |
sphericalAreaFromCoordinatesArray(com.vividsolutions.jts.geom.Coordinate[] cc)
Utility method to find out the spherical area of the polygon described with an array of coordinates |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final double SQ_METERS_LIMIT
public static double HalfPi
public static double Degree
public static double SqMi
public static double SqKm
public static double SqM
public static java.lang.String[] CRS_CODE_KNOWN
Constructor Detail |
public GeoUtils()
Method Detail |
public static boolean isInED50Meters(IProjection p)
p
- the projection of interest
public static boolean isInWGS84Meters(IProjection p)
p
- the projection of interest
public static int getZone(IProjection p)
p
- The projection of interest
public static double getAreaInSquareMeters(java.awt.geom.PathIterator pit, java.lang.String _srs)
pit
- the path iterator of interest_srs
- the SRS of the coordinates
public static double[] getIteratorLengthAndLast(java.awt.geom.PathIterator pit, java.lang.String _srs)
pit
- the path iterator of interest_srs
- the SRS
public static double sphericalAreaFromCoordinatesArray(com.vividsolutions.jts.geom.Coordinate[] cc)
cc
- array of coordinates describing the spherical polygon of interest
public static double distance(double x1, double y1, double x2, double y2)
x1
- x coordinate of point Ay1
- y coordinate of point Ax2
- x coordinate of point By2
- y coordinate of point B
public static double[] getIteratorLengthAndLast(java.awt.geom.PathIterator piter)
piter
- the path iterator of interest
public static double getScale(Projection p, double distance_in_proj_units, double distance_in_map_in_meters)
p
- the projection of the mapdistance_in_proj_units
- sample distance in projection unitsdistance_in_map_in_meters
- true distance of the sample in meters
public static java.lang.String inTwoDigits(int n)
public static boolean isLatLonProjection(java.lang.String abbrev)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |