public class GeoUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
EARTH_CIRCUMFERENCE |
static double |
EARTH_RADIUS |
static double |
MAX_LAT |
static double |
MAX_LON |
static double |
MIN_LAT |
static double |
MIN_LON |
| Constructor and Description |
|---|
GeoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double |
distanceBetween(double latitude1,
double longitude1,
double latitude2,
double longitude2) |
static GeoShape |
getEnvelope(GeoShape geoShape) |
static boolean |
intersects(GeoShape left,
GeoShape right) |
static GeoShape |
repair(GeoShape geoShape) |
static GeoShape |
toGeoShape(org.locationtech.jts.geom.Geometry geometry) |
static org.locationtech.jts.geom.Geometry |
toJtsPolygon(List<GeoPoint> outerBoundary,
List<List<GeoPoint>> holeBoundaries,
boolean lenient) |
static boolean |
within(GeoShape left,
GeoShape right) |
public static double EARTH_RADIUS
public static double EARTH_CIRCUMFERENCE
public static final double MIN_LAT
public static final double MAX_LAT
public static final double MIN_LON
public static final double MAX_LON
public static GeoShape toGeoShape(org.locationtech.jts.geom.Geometry geometry)
public static double distanceBetween(double latitude1,
double longitude1,
double latitude2,
double longitude2)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.