程序包 org.coodex.jts
类 JTSUtil
java.lang.Object
org.coodex.jts.JTSUtil
-
字段概要
字段 -
方法概要
修饰符和类型方法说明static doubleareaOf(org.locationtech.jts.geom.Geometry lngLat) 已过时。static doubleareaOf(org.locationtech.jts.geom.Geometry geometry, CoordSys.CoordType coordType) static MetersGeometrybuildMeterGeometry(org.locationtech.jts.geom.Geometry geometry, CoordSys.CoordType coordType) static org.locationtech.jts.geom.Geometrycrop(org.locationtech.jts.geom.Geometry geometry, double threshold) 根据阈值裁剪内孔static org.locationtech.jts.geom.Geometrydifference2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) static doubledistance(double x1, double y1, double x2, double y2) static doubledistanceLngLat(double x1, double y1, double x2, double y2) static doubledistanceLngLat(org.locationtech.jts.geom.Coordinate c1, org.locationtech.jts.geom.Coordinate c2) static org.locationtech.jts.geom.Geometryget2DGeometry(org.locationtech.jts.geom.Geometry geometry) static org.locationtech.jts.geom.Geometryintersection2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) static double[]lngLat2Mercator(double[] lngLat) static double[]lngLat2Mercator(double lng, double lat) static org.locationtech.jts.geom.CoordinatelngLat2Mercator(org.locationtech.jts.geom.Coordinate lngLat) static org.locationtech.jts.geom.Coordinate[]lngLat2Mercator(org.locationtech.jts.geom.Coordinate[] lngLat) static <T extends org.locationtech.jts.geom.Geometry>
TlngLat2Mercator(T lngLat) static double[]mercator2LngLat(double[] mercator) static double[]mercator2LngLat(double x, double y) static org.locationtech.jts.geom.Coordinatemercator2LngLat(org.locationtech.jts.geom.Coordinate mercator) static org.locationtech.jts.geom.Coordinate[]mercator2LngLat(org.locationtech.jts.geom.Coordinate[] mercator) static <T extends org.locationtech.jts.geom.Geometry>
Tmercator2LngLat(T mercator) static org.locationtech.jts.geom.Coordinatemove(org.locationtech.jts.geom.Coordinate o, double distance, double degree) static doubleshoelaceFormula(org.locationtech.jts.geom.Coordinate[] coordinates) static <T> doubleshoelaceFormula(T[] points, Function<T, Double> xGetter, Function<T, Double> yGetter) static org.locationtech.jts.geom.GeometrysymDifference2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) static org.locationtech.jts.geom.Geometryunion2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) static org.locationtech.jts.geom.GeometrywktToGeometry(String wkt) static doublexMove(org.locationtech.jts.geom.Coordinate o, double distance) static doubleyMove(org.locationtech.jts.geom.Coordinate o, double distance)
-
字段详细资料
-
GEOMETRY_FACTORY
public static final org.locationtech.jts.geom.GeometryFactory GEOMETRY_FACTORY
-
-
方法详细资料
-
lngLat2Mercator
public static double[] lngLat2Mercator(double[] lngLat) -
lngLat2Mercator
public static double[] lngLat2Mercator(double lng, double lat) -
mercator2LngLat
public static double[] mercator2LngLat(double[] mercator) -
mercator2LngLat
public static double[] mercator2LngLat(double x, double y) -
distance
public static double distance(double x1, double y1, double x2, double y2) -
mercator2LngLat
public static <T extends org.locationtech.jts.geom.Geometry> T mercator2LngLat(T mercator) -
lngLat2Mercator
public static <T extends org.locationtech.jts.geom.Geometry> T lngLat2Mercator(T lngLat) -
mercator2LngLat
public static org.locationtech.jts.geom.Coordinate mercator2LngLat(org.locationtech.jts.geom.Coordinate mercator) -
lngLat2Mercator
public static org.locationtech.jts.geom.Coordinate lngLat2Mercator(org.locationtech.jts.geom.Coordinate lngLat) -
mercator2LngLat
public static org.locationtech.jts.geom.Coordinate[] mercator2LngLat(org.locationtech.jts.geom.Coordinate[] mercator) -
lngLat2Mercator
public static org.locationtech.jts.geom.Coordinate[] lngLat2Mercator(org.locationtech.jts.geom.Coordinate[] lngLat) -
crop
public static org.locationtech.jts.geom.Geometry crop(org.locationtech.jts.geom.Geometry geometry, double threshold) 根据阈值裁剪内孔- 参数:
geometry- geometrythreshold- 阈值,内孔占外边框面积的比例- 返回:
- 裁剪后的几何图形
-
union2D
public static org.locationtech.jts.geom.Geometry union2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) -
intersection2D
public static org.locationtech.jts.geom.Geometry intersection2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) -
difference2D
public static org.locationtech.jts.geom.Geometry difference2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) -
symDifference2D
public static org.locationtech.jts.geom.Geometry symDifference2D(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2) -
yMove
public static double yMove(org.locationtech.jts.geom.Coordinate o, double distance) -
xMove
public static double xMove(org.locationtech.jts.geom.Coordinate o, double distance) -
move
public static org.locationtech.jts.geom.Coordinate move(org.locationtech.jts.geom.Coordinate o, double distance, double degree) -
areaOf
public static double areaOf(org.locationtech.jts.geom.Geometry geometry, CoordSys.CoordType coordType) -
areaOf
已过时。 -
get2DGeometry
public static org.locationtech.jts.geom.Geometry get2DGeometry(org.locationtech.jts.geom.Geometry geometry) -
distanceLngLat
public static double distanceLngLat(org.locationtech.jts.geom.Coordinate c1, org.locationtech.jts.geom.Coordinate c2) -
distanceLngLat
public static double distanceLngLat(double x1, double y1, double x2, double y2) -
shoelaceFormula
-
shoelaceFormula
public static double shoelaceFormula(org.locationtech.jts.geom.Coordinate[] coordinates) -
wktToGeometry
-
buildMeterGeometry
public static MetersGeometry buildMeterGeometry(org.locationtech.jts.geom.Geometry geometry, CoordSys.CoordType coordType)
-