Package io.trino.geospatial
Class GeometryUtils
- java.lang.Object
-
- io.trino.geospatial.GeometryUtils
-
public final class GeometryUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancontains(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry, com.esri.core.geometry.Envelope envelope)static booleandisjoint(com.esri.core.geometry.Envelope envelope, com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)static com.esri.core.geometry.EnvelopegetEnvelope(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)static intgetPointCount(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry)static booleanisEsriNaN(double d)static booleanisPointOrRectangle(com.esri.core.geometry.ogc.OGCGeometry ogcGeometry, com.esri.core.geometry.Envelope envelope)static StringjsonFromJtsGeometry(org.locationtech.jts.geom.Geometry geometry)static org.locationtech.jts.geom.GeometryjtsGeometryFromJson(String json)static doubletranslateToAVNaN(double n)Copy of com.esri.core.geometry.Interop.translateToAVNaN
-
-
-
Method Detail
-
translateToAVNaN
public static double translateToAVNaN(double n)
Copy of com.esri.core.geometry.Interop.translateToAVNaNJtsGeometrySerde#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)
-
-