|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uchicago.src.sim.gis.GisUtilities
This is a set of useful gis tools that are not included in any of the third party libraries. If something isn't in here, it may well be in either the JTS libraries or Geotools.
| Field Summary | |
static int |
KILOMETERS
Great Circle distance of the Earth in Kilometers. |
static int |
METERS
Great Circle distance of the Earth in Meters. |
static int |
MILES
Great Circle distance of the Earth in Miles. |
| Constructor Summary | |
GisUtilities()
|
|
| Method Summary | |
static double |
getDistance(com.vividsolutions.jts.geom.Coordinate c1,
com.vividsolutions.jts.geom.Coordinate c2)
Calculates the distance between two points using the haversine formula. |
static double |
getDistance(com.vividsolutions.jts.geom.Coordinate c1,
com.vividsolutions.jts.geom.Coordinate c2,
int measure)
Calculates the distance between two points using the haversine formula. |
static double |
getDistance(double x1,
double x2,
double y1,
double y2)
Calculates the distance between two points using the haversine formula. |
static double |
getDistance(double x1,
double x2,
double y1,
double y2,
int measure)
Calculates the distance between two points using the haversine formula. |
static com.vividsolutions.jts.geom.GeometryFactory |
getGeometryFactory()
Get a singleton version of a JTS GeometryFactory, which is used to create the Geometries (not the feature data). |
static com.vividsolutions.jts.geom.Coordinate |
getPolygonCenterOfMass(com.vividsolutions.jts.geom.Geometry poly)
Returns the Center of Mass or centroid of the polygon. |
static double |
polygonArea(com.vividsolutions.jts.geom.Coordinate[] polygon,
int N)
This calculates the area of a polygon. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int METERS
public static final int KILOMETERS
public static final int MILES
| Constructor Detail |
public GisUtilities()
| Method Detail |
public static com.vividsolutions.jts.geom.GeometryFactory getGeometryFactory()
public static double polygonArea(com.vividsolutions.jts.geom.Coordinate[] polygon,
int N)
polygon - N -
public static com.vividsolutions.jts.geom.Coordinate getPolygonCenterOfMass(com.vividsolutions.jts.geom.Geometry poly)
poly -
public static double getDistance(com.vividsolutions.jts.geom.Coordinate c1,
com.vividsolutions.jts.geom.Coordinate c2,
int measure)
c1 - c2 - measure - This is the distance of the great circle in meters, km, or miles
public static double getDistance(com.vividsolutions.jts.geom.Coordinate c1,
com.vividsolutions.jts.geom.Coordinate c2)
c1 - c2 -
public static double getDistance(double x1,
double x2,
double y1,
double y2)
x1 - x2 - y1 - y2 -
public static double getDistance(double x1,
double x2,
double y1,
double y2,
int measure)
x1 - x2 - y1 - y2 - measure - This is the distance of the great circle in meters, km, or miles
|
RePast v. 2.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||