程序包 org.coodex.jts

类 JTSUtil

java.lang.Object
org.coodex.jts.JTSUtil

public class JTSUtil extends Object
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final org.locationtech.jts.geom.GeometryFactory
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static double
    areaOf(org.locationtech.jts.geom.Geometry lngLat)
    已过时。
    static double
    areaOf(org.locationtech.jts.geom.Geometry geometry, CoordSys.CoordType coordType)
     
    buildMeterGeometry(org.locationtech.jts.geom.Geometry geometry, CoordSys.CoordType coordType)
     
    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 double
    distanceLngLat(org.locationtech.jts.geom.Coordinate c1, org.locationtech.jts.geom.Coordinate c2)
     
    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 double[]
    lngLat2Mercator(double[] lngLat)
     
    static double[]
    lngLat2Mercator(double lng, double lat)
     
    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 <T extends org.locationtech.jts.geom.Geometry>
    T
    lngLat2Mercator(T lngLat)
     
    static double[]
    mercator2LngLat(double[] mercator)
     
    static double[]
    mercator2LngLat(double x, double y)
     
    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 <T extends org.locationtech.jts.geom.Geometry>
    T
    mercator2LngLat(T mercator)
     
    static org.locationtech.jts.geom.Coordinate
    move(org.locationtech.jts.geom.Coordinate o, double distance, double degree)
     
    static double
    shoelaceFormula(org.locationtech.jts.geom.Coordinate[] coordinates)
     
    static <T> double
    shoelaceFormula(T[] points, Function<T,Double> xGetter, Function<T,Double> yGetter)
     
    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)
     
    static org.locationtech.jts.geom.Geometry
     
    static double
    xMove(org.locationtech.jts.geom.Coordinate o, double distance)
     
    static double
    yMove(org.locationtech.jts.geom.Coordinate o, double distance)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • 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 - geometry
      threshold - 阈值,内孔占外边框面积的比例
      返回:
      裁剪后的几何图形
    • 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

      @Deprecated public static double areaOf(org.locationtech.jts.geom.Geometry lngLat)
      已过时。
    • 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

      public static <T> double shoelaceFormula(T[] points, Function<T,Double> xGetter, Function<T,Double> yGetter)
    • shoelaceFormula

      public static double shoelaceFormula(org.locationtech.jts.geom.Coordinate[] coordinates)
    • wktToGeometry

      public static org.locationtech.jts.geom.Geometry wktToGeometry(String wkt)
    • buildMeterGeometry

      public static MetersGeometry buildMeterGeometry(org.locationtech.jts.geom.Geometry geometry, CoordSys.CoordType coordType)