public class JTSUtil extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static org.locationtech.jts.geom.GeometryFactory |
GEOMETRY_FACTORY |
| 构造器和说明 |
|---|
JTSUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
areaOf(org.locationtech.jts.geom.Geometry lngLat) |
static org.locationtech.jts.geom.Geometry |
crop(org.locationtech.jts.geom.Geometry geometry,
double threshold)
根据阈值裁剪内孔
|
static org.locationtech.jts.geom.Geometry |
difference2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2) |
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.Geometry |
get2DGeometry(org.locationtech.jts.geom.Geometry geometry) |
static org.locationtech.jts.geom.Geometry |
intersection2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2) |
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) |
static org.locationtech.jts.geom.Geometry |
symDifference2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2) |
static org.locationtech.jts.geom.Geometry |
union2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2) |
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 org.locationtech.jts.geom.Geometry crop(org.locationtech.jts.geom.Geometry geometry,
double threshold)
geometry - geometrythreshold - 阈值,内孔占外边框面积的比例public static org.locationtech.jts.geom.Geometry union2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2)
public static org.locationtech.jts.geom.Geometry intersection2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2)
public static org.locationtech.jts.geom.Geometry difference2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2)
public static org.locationtech.jts.geom.Geometry symDifference2D(org.locationtech.jts.geom.Geometry g1,
org.locationtech.jts.geom.Geometry g2)
public static double areaOf(org.locationtech.jts.geom.Geometry lngLat)
public static org.locationtech.jts.geom.Geometry get2DGeometry(org.locationtech.jts.geom.Geometry geometry)
public static double distanceLngLat(double x1,
double y1,
double x2,
double y2)
Copyright © 2022. All rights reserved.