![]() |
AI2 Component
(Version nb184)
|
Static Public Member Functions | |
static double | coerceToDouble (Object o) |
static GeoPoint | coerceToPoint (Object lat, Object lng) |
static YailList | asYailList (IGeoPoint point) |
static YailList | pointsListToYailList (List<? extends IGeoPoint > points) |
static GeoPoint | pointFromYailList (YailList point) |
static List< GeoPoint > | pointsFromYailList (YailList points) |
static Geometry | createGeometry (GeoPoint point) |
static Geometry | createGeometry (List< GeoPoint > line) |
static Geometry | createGeometry (double north, double east, double south, double west) |
static Geometry | createGeometry (List< List< GeoPoint >> points, List< List< List< GeoPoint >>> holes) |
static GeoPoint | getMidpoint (List< GeoPoint > points) |
static GeoPoint | getCentroid (List< List< GeoPoint >> points, List< List< List< GeoPoint >>> holes) |
static Polygon | ringToPolygon (List< GeoPoint > ring) |
static Coordinate[] | pointsToCoordinates (List< GeoPoint > points) |
static LinearRing | geoPointsToLinearRing (List< GeoPoint > points) |
static Polygon | ringToPolygon (List< GeoPoint > ring, List< List< GeoPoint >> holes) |
static GeoPoint | jtsPointToGeoPoint (Point p) |
static Coordinate | geoPointToCoordinate (GeoPoint p) |
static double | distanceBetween (IGeoPoint a, IGeoPoint b) |
static double | distanceBetween (MapMarker marker, GeoPoint point) |
static double | distanceBetween (MapMarker marker1, MapMarker marker2) |
static double | distanceBetweenEdges (MapMarker marker, MapLineString lineString) |
static double | distanceBetweenEdges (MapMarker marker, MapPolygon polygon) |
static double | distanceBetweenEdges (MapMarker marker, MapCircle circle) |
static double | distanceBetweenEdges (MapMarker marker, MapRectangle rectangle) |
static double | distanceBetweenEdges (MapLineString lineString, GeoPoint point) |
static double | distanceBetweenEdges (MapLineString lineString1, MapLineString lineString2) |
static double | distanceBetweenEdges (MapLineString lineString, MapPolygon polygon) |
static double | distanceBetweenEdges (MapLineString lineString, MapCircle circle) |
static double | distanceBetweenEdges (MapLineString lineString, MapRectangle rectangle) |
static double | distanceBetweenEdges (MapPolygon polygon, GeoPoint point) |
static double | distanceBetweenEdges (MapPolygon polygon1, MapPolygon polygon2) |
static double | distanceBetweenEdges (MapPolygon polygon, MapCircle circle) |
static double | distanceBetweenEdges (MapPolygon polygon, MapRectangle rectangle) |
static double | distanceBetweenEdges (MapCircle circle, GeoPoint point) |
static double | distanceBetweenEdges (MapCircle circle1, MapCircle circle2) |
static double | distanceBetweenEdges (MapCircle circle, MapRectangle rectangle) |
static double | distanceBetweenEdges (MapRectangle rectangle, GeoPoint point) |
static double | distanceBetweenEdges (MapRectangle rectangle1, MapRectangle rectangle2) |
static double | distanceBetweenCentroids (MapMarker marker, MapLineString lineString) |
static double | distanceBetweenCentroids (MapMarker marker, MapPolygon polygon) |
static double | distanceBetweenCentroids (MapMarker marker, MapCircle circle) |
static double | distanceBetweenCentroids (MapMarker marker, MapRectangle rectangle) |
static double | distanceBetweenCentroids (MapLineString lineString, GeoPoint point) |
static double | distanceBetweenCentroids (MapLineString lineString1, MapLineString lineString2) |
static double | distanceBetweenCentroids (MapLineString lineString, MapPolygon polygon) |
static double | distanceBetweenCentroids (MapLineString lineString, MapCircle circle) |
static double | distanceBetweenCentroids (MapLineString lineString, MapRectangle rectangle) |
static double | distanceBetweenCentroids (MapPolygon polygon, GeoPoint point) |
static double | distanceBetweenCentroids (MapPolygon polygon1, MapPolygon polygon2) |
static double | distanceBetweenCentroids (MapPolygon polygon, MapCircle circle) |
static double | distanceBetweenCentroids (MapPolygon polygon, MapRectangle rectangle) |
static double | distanceBetweenCentroids (MapCircle circle, GeoPoint point) |
static double | distanceBetweenCentroids (MapCircle circle1, MapCircle circle2) |
static double | distanceBetweenCentroids (MapCircle circle, MapRectangle rectangle) |
static double | distanceBetweenCentroids (MapRectangle rectangle, GeoPoint point) |
static double | distanceBetweenCentroids (MapRectangle rectangle1, MapRectangle rectangle2) |
static double | bearingTo (MapMarker from, MapMarker to) |
static double | bearingToEdge (MapMarker from, MapLineString to) |
static double | bearingToEdge (MapMarker from, MapPolygon to) |
static double | bearingToEdge (MapMarker from, MapRectangle to) |
static double | bearingToEdge (MapMarker from, MapCircle to) |
static double | bearingToCentroid (MapMarker from, MapLineString to) |
static double | bearingToCentroid (MapMarker from, MapPolygon to) |
static double | bearingToCentroid (MapMarker from, MapRectangle to) |
static double | bearingToCentroid (MapMarker from, MapCircle to) |
static boolean | isValidLatitude (double latitude) |
static boolean | isValidLongitude (double longitude) |
static List< GeoPoint > | polygonToList (JSONArray array) throws JSONException |
static List< List< GeoPoint > > | multiPolygonToList (JSONArray array) throws JSONException |
static YailList | multiPolygonToYailList (List< List< GeoPoint >> multipolygon) |
static List< List< GeoPoint > > | multiPolygonFromYailList (YailList list) |
static List< List< List< GeoPoint > > > | multiPolygonHolesFromYailList (YailList points) |
static List< List< List< GeoPoint > > > | multiPolygonHolesToList (JSONArray array) throws JSONException |
static boolean | isPolygon (YailList points) |
static boolean | isMultiPolygon (YailList points) |
Static Public Attributes | |
static final double | EARTH_RADIUS = 6378137.0 |
static final double | ONE_DEG_IN_METERS = EARTH_RADIUS * Math.PI / 180.0 |
static final int | WEB_MERCATOR_SRID = 4326 |
GeometryUtil provides computational utilities to support centroid, distance, and area calculations used for Map and related components.
Definition at line 41 of file GeometryUtil.java.
|
static |
Definition at line 80 of file GeometryUtil.java.
|
static |
Definition at line 399 of file GeometryUtil.java.
|
static |
Definition at line 434 of file GeometryUtil.java.
|
static |
Definition at line 422 of file GeometryUtil.java.
|
static |
Definition at line 426 of file GeometryUtil.java.
|
static |
Definition at line 430 of file GeometryUtil.java.
|
static |
Definition at line 418 of file GeometryUtil.java.
|
static |
Definition at line 403 of file GeometryUtil.java.
|
static |
Definition at line 408 of file GeometryUtil.java.
|
static |
Definition at line 413 of file GeometryUtil.java.
|
static |
Definition at line 52 of file GeometryUtil.java.
|
static |
Definition at line 64 of file GeometryUtil.java.
|
static |
Definition at line 128 of file GeometryUtil.java.
|
static |
Definition at line 120 of file GeometryUtil.java.
|
static |
Definition at line 124 of file GeometryUtil.java.
|
static |
Definition at line 138 of file GeometryUtil.java.
|
static |
Definition at line 229 of file GeometryUtil.java.
|
static |
Definition at line 241 of file GeometryUtil.java.
|
static |
Definition at line 245 of file GeometryUtil.java.
|
static |
Definition at line 379 of file GeometryUtil.java.
|
static |
Definition at line 387 of file GeometryUtil.java.
|
static |
Definition at line 383 of file GeometryUtil.java.
|
static |
Definition at line 343 of file GeometryUtil.java.
|
static |
Definition at line 355 of file GeometryUtil.java.
|
static |
Definition at line 351 of file GeometryUtil.java.
|
static |
Definition at line 359 of file GeometryUtil.java.
|
static |
Definition at line 347 of file GeometryUtil.java.
|
static |
Definition at line 335 of file GeometryUtil.java.
|
static |
Definition at line 327 of file GeometryUtil.java.
|
static |
Definition at line 331 of file GeometryUtil.java.
|
static |
Definition at line 339 of file GeometryUtil.java.
|
static |
Definition at line 363 of file GeometryUtil.java.
|
static |
Definition at line 371 of file GeometryUtil.java.
|
static |
Definition at line 375 of file GeometryUtil.java.
|
static |
Definition at line 367 of file GeometryUtil.java.
|
static |
Definition at line 391 of file GeometryUtil.java.
|
static |
Definition at line 395 of file GeometryUtil.java.
|
static |
Definition at line 304 of file GeometryUtil.java.
|
static |
Definition at line 314 of file GeometryUtil.java.
|
static |
Definition at line 309 of file GeometryUtil.java.
|
static |
Definition at line 266 of file GeometryUtil.java.
|
static |
Definition at line 278 of file GeometryUtil.java.
|
static |
Definition at line 274 of file GeometryUtil.java.
|
static |
Definition at line 283 of file GeometryUtil.java.
|
static |
Definition at line 270 of file GeometryUtil.java.
|
static |
Definition at line 257 of file GeometryUtil.java.
|
static |
Definition at line 249 of file GeometryUtil.java.
|
static |
Definition at line 253 of file GeometryUtil.java.
|
static |
Definition at line 262 of file GeometryUtil.java.
|
static |
Definition at line 287 of file GeometryUtil.java.
|
static |
Definition at line 295 of file GeometryUtil.java.
|
static |
Definition at line 300 of file GeometryUtil.java.
|
static |
Definition at line 291 of file GeometryUtil.java.
|
static |
Definition at line 319 of file GeometryUtil.java.
|
static |
Definition at line 323 of file GeometryUtil.java.
|
static |
Definition at line 207 of file GeometryUtil.java.
|
static |
Definition at line 225 of file GeometryUtil.java.
|
static |
Computes the centroid of a multipolygon. Note that the centroid may not be contained in the multipolygon.
points | A list of lists of points composing the multipolygon. |
holes | A list of lists of lists of points indicating holes in the multipolygon. The ith list of lists of points is a list of polygons indicating holes in the i th polygon in points . |
points
and holes
. IllegalArgumentException | if points is null or holes is not null and it does not have the same number of elements as points . |
Definition at line 186 of file GeometryUtil.java.
|
static |
Definition at line 161 of file GeometryUtil.java.
|
static |
Heuristic to determine whether or not to process the list points
as a multipolygon.
points | A YailList potentially containing a sequence of sequences of lat-long coordinate pairs. |
Definition at line 566 of file GeometryUtil.java.
|
static |
Heuristic to determine whether or not to process the list points
as a single polygon.
points | A YailList potentially containing a sequence of lat-long coordinate pairs. |
Definition at line 545 of file GeometryUtil.java.
|
static |
Tests whether the given double value is a valid latitude.
latitude | a value to test |
Definition at line 444 of file GeometryUtil.java.
|
static |
Tests whether the given double value is a valid longitude.
longitude | a value to test |
Definition at line 454 of file GeometryUtil.java.
|
static |
Definition at line 221 of file GeometryUtil.java.
|
static |
Definition at line 500 of file GeometryUtil.java.
|
static |
Definition at line 509 of file GeometryUtil.java.
|
static |
Definition at line 525 of file GeometryUtil.java.
|
static |
Definition at line 478 of file GeometryUtil.java.
|
static |
Definition at line 492 of file GeometryUtil.java.
|
static |
Definition at line 92 of file GeometryUtil.java.
|
static |
Definition at line 104 of file GeometryUtil.java.
|
static |
Definition at line 84 of file GeometryUtil.java.
|
static |
Definition at line 194 of file GeometryUtil.java.
|
static |
Definition at line 458 of file GeometryUtil.java.
|
static |
Definition at line 190 of file GeometryUtil.java.
|
static |
Definition at line 211 of file GeometryUtil.java.
|
static |
Definition at line 43 of file GeometryUtil.java.
|
static |
Definition at line 44 of file GeometryUtil.java.
|
static |
Definition at line 45 of file GeometryUtil.java.