public class JTSUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.locationtech.jts.geom.GeometryFactory |
GEOMETRY_FACTORY |
| 构造器和说明 |
|---|
JTSUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
areaOf(org.locationtech.jts.geom.Geometry lngLat) |
static <T extends org.locationtech.jts.geom.Geometry> |
crop(T geometry,
double threshold)
根据阈值裁剪内孔
|
static double |
distance(double x1,
double y1,
double x2,
double y2) |
static double |
distanceLngLat(double x1,
double y1,
double x2,
double y2) |
static org.locationtech.jts.geom.Coordinate |
lngLat2Mercator(org.locationtech.jts.geom.Coordinate lngLat) |
static org.locationtech.jts.geom.Coordinate[] |
lngLat2Mercator(org.locationtech.jts.geom.Coordinate[] lngLat) |
static double[] |
lngLat2Mercator(double[] lngLat) |
static double[] |
lngLat2Mercator(double lng,
double lat) |
static <T extends org.locationtech.jts.geom.Geometry> |
lngLat2Mercator(T lngLat) |
static org.locationtech.jts.geom.Coordinate |
mercator2LngLat(org.locationtech.jts.geom.Coordinate mercator) |
static org.locationtech.jts.geom.Coordinate[] |
mercator2LngLat(org.locationtech.jts.geom.Coordinate[] mercator) |
static double[] |
mercator2LngLat(double[] mercator) |
static double[] |
mercator2LngLat(double x,
double y) |
static <T extends org.locationtech.jts.geom.Geometry> |
mercator2LngLat(T mercator) |
public static final org.locationtech.jts.geom.GeometryFactory GEOMETRY_FACTORY
public static double[] lngLat2Mercator(double[] lngLat)
public static double[] lngLat2Mercator(double lng,
double lat)
public static double[] mercator2LngLat(double[] mercator)
public static double[] mercator2LngLat(double x,
double y)
public static double distance(double x1,
double y1,
double x2,
double y2)
public static <T extends org.locationtech.jts.geom.Geometry> T mercator2LngLat(T mercator)
public static <T extends org.locationtech.jts.geom.Geometry> T lngLat2Mercator(T lngLat)
public static org.locationtech.jts.geom.Coordinate mercator2LngLat(org.locationtech.jts.geom.Coordinate mercator)
public static org.locationtech.jts.geom.Coordinate lngLat2Mercator(org.locationtech.jts.geom.Coordinate lngLat)
public static org.locationtech.jts.geom.Coordinate[] mercator2LngLat(org.locationtech.jts.geom.Coordinate[] mercator)
public static org.locationtech.jts.geom.Coordinate[] lngLat2Mercator(org.locationtech.jts.geom.Coordinate[] lngLat)
public static <T extends org.locationtech.jts.geom.Geometry> T crop(T geometry,
double threshold)
geometry - geometrythreshold - 阈值,内孔占外边框面积的比例public static double areaOf(org.locationtech.jts.geom.Geometry lngLat)
public static double distanceLngLat(double x1,
double y1,
double x2,
double y2)
Copyright © 2021. All rights reserved.