public class SparkUDFUtils
extends java.lang.Object
| Constructor and Description |
|---|
SparkUDFUtils() |
| Modifier and Type | Method and Description |
|---|---|
static JGeometry |
buildGeometry(java.lang.String value)
Builds the jGeometry for the geojson
|
static boolean |
isJsonString(java.lang.String toValidate)
Return true if the string is a JSON string, false otherwise.
|
static boolean |
sameSRIDAndDim(JGeometry geom1, JGeometry geom2)
Return true if the geometries have the same SRID, false otherwise.
|
static double |
setTolerance(java.math.BigDecimal inputTolerance, JGeometry geom)
Sets the tolerance to 0.05 for geodetic geometries by default
|
public static JGeometry buildGeometry(java.lang.String value)
geometryValue - geoJson value for the geometry to convertpublic static boolean isJsonString(java.lang.String toValidate)
toValidate - the string to validate
public static boolean sameSRIDAndDim(JGeometry geom1,
JGeometry geom2)
geom1 - first geometrygeom2 - second geometry
public static double setTolerance(java.math.BigDecimal inputTolerance,
JGeometry geom)
inputTolerance - tolerance to set, it may be nullgeom - jGeometry object to verify if it is geodeticCopyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.