Class GeometryUtils


  • public final class GeometryUtils
    extends Object
    • Method Detail

      • 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)