Class GeometryUtils

java.lang.Object
io.trino.geospatial.GeometryUtils

public final class GeometryUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    contains(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry, com.esri.core.geometry.Envelope envelope)
     
    static boolean
    disjoint(com.esri.core.geometry.Envelope envelope, com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)
     
    static com.esri.core.geometry.Envelope
    getEnvelope(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)
     
    static int
    getPointCount(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)
     
    static boolean
    isEsriNaN(double d)
     
    static boolean
    isPointOrRectangle(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry, com.esri.core.geometry.Envelope envelope)
     
    static String
    jsonFromJtsGeometry(org.locationtech.jts.geom.Geometry geometry)
     
    static org.locationtech.jts.geom.Geometry
     
    static double
    translateToAVNaN(double n)
    Copy of com.esri.core.geometry.Interop.translateToAVNaN

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • translateToAVNaN

      public static double translateToAVNaN(double n)
      Copy of com.esri.core.geometry.Interop.translateToAVNaN

      JtsGeometrySerde#serialize must serialize NaN's the same way ESRI library does to achieve binary compatibility

    • isEsriNaN

      public static boolean isEsriNaN(double d)
    • getPointCount

      public static int getPointCount(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)
    • getEnvelope

      public static com.esri.core.geometry.Envelope getEnvelope(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)
    • disjoint

      public static boolean disjoint(com.esri.core.geometry.Envelope envelope, com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)
    • contains

      public static boolean contains(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry, com.esri.core.geometry.Envelope envelope)
    • isPointOrRectangle

      public static boolean isPointOrRectangle(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry, com.esri.core.geometry.Envelope envelope)
    • jtsGeometryFromJson

      public static org.locationtech.jts.geom.Geometry jtsGeometryFromJson(String json)
    • jsonFromJtsGeometry

      public static String jsonFromJtsGeometry(org.locationtech.jts.geom.Geometry geometry)