Package io.trino.geospatial
Class GeometryUtils
java.lang.Object
io.trino.geospatial.GeometryUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-
jsonFromJtsGeometry
-