Class GeometryHelpers
- java.lang.Object
-
- org.sheinbergon.dremio.udf.gis.util.GeometryHelpers
-
public final class GeometryHelpers extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intBIT_FALSEstatic intBIT_TRUEstatic intDEFAULT_SRID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidappend(byte[] bytes, org.apache.arrow.memory.ArrowBuf buffer, org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)static org.locationtech.jts.geom.Geometrybuffer(org.locationtech.jts.geom.Geometry geometry, double radius, String parameters)static org.locationtech.jts.geom.GeometryemptyGeometry()static org.apache.arrow.memory.ArrowBufenlargeBufferIfNeeded(org.apache.arrow.memory.ArrowBuf buffer, long required)static booleanisACollection(org.locationtech.jts.geom.Geometry geometry)static booleanisAPoint(org.locationtech.jts.geom.Geometry geometry)static booleanisAreal(org.locationtech.jts.geom.Geometry geometry)static booleanisHolderSet(org.apache.arrow.vector.holders.ValueHolder holder)static booleanisLinear(org.locationtech.jts.geom.Geometry geometry)static booleanisValueFalse(org.apache.arrow.vector.holders.ValueHolder holder)static booleanisValueTrue(org.apache.arrow.vector.holders.ValueHolder holder)static voidmarkHolderNotSet(org.apache.arrow.vector.holders.ValueHolder holder)static voidmarkHolderSet(org.apache.arrow.vector.holders.ValueHolder holder)static voidpopulate(byte[] bytes, org.apache.arrow.memory.ArrowBuf buffer, org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)static voidpopulate(byte[] bytes, org.apache.arrow.memory.ArrowBuf buffer, org.apache.arrow.vector.holders.NullableVarCharHolder holder)static voidsetValueFalse(org.apache.arrow.vector.holders.ValueHolder holder)static voidsetValueTrue(org.apache.arrow.vector.holders.ValueHolder holder)static doubletoAngleRadians(org.locationtech.jts.geom.Point s1, org.locationtech.jts.geom.Point e1, org.locationtech.jts.geom.Point s2, org.locationtech.jts.geom.Point e2)static doubletoAzimuthRadians(org.locationtech.jts.geom.Point p1, org.locationtech.jts.geom.Point p2)static byte[]toBinary(org.locationtech.jts.geom.Geometry geometry)static inttoBitValue(boolean value)static byte[]toGeoJson(org.locationtech.jts.geom.Geometry geometry)static org.locationtech.jts.geom.GeometrytoGeometry(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)static org.locationtech.jts.geom.GeometrytoGeometry(org.apache.arrow.vector.holders.NullableVarCharHolder holder)static org.locationtech.jts.geom.GeometryCollectiontoGeometryCollection(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)static org.locationtech.jts.geom.LineStringtoLineString(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)static org.locationtech.jts.geom.PointtoPoint(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)static byte[]toText(org.locationtech.jts.geom.Geometry geometry)static StringtoUTF8String(org.apache.arrow.vector.holders.NullableVarCharHolder holder)static StringtoUTF8String(org.apache.arrow.vector.holders.VarCharHolder holder)
-
-
-
Field Detail
-
BIT_TRUE
public static final int BIT_TRUE
- See Also:
- Constant Field Values
-
BIT_FALSE
public static final int BIT_FALSE
- See Also:
- Constant Field Values
-
DEFAULT_SRID
public static final int DEFAULT_SRID
- See Also:
- Constant Field Values
-
-
Method Detail
-
emptyGeometry
public static org.locationtech.jts.geom.Geometry emptyGeometry()
-
toUTF8String
public static String toUTF8String(@Nonnull org.apache.arrow.vector.holders.VarCharHolder holder)
-
toUTF8String
public static String toUTF8String(@Nonnull org.apache.arrow.vector.holders.NullableVarCharHolder holder)
-
toBinary
public static byte[] toBinary(@Nonnull org.locationtech.jts.geom.Geometry geometry)
-
toText
public static byte[] toText(@Nonnull org.locationtech.jts.geom.Geometry geometry)
-
toGeoJson
public static byte[] toGeoJson(@Nonnull org.locationtech.jts.geom.Geometry geometry)
-
toGeometry
@Nonnull public static org.locationtech.jts.geom.Geometry toGeometry(@Nonnull org.apache.arrow.vector.holders.NullableVarCharHolder holder)
-
toGeometryCollection
public static org.locationtech.jts.geom.GeometryCollection toGeometryCollection(@Nonnull org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)
-
toPoint
@Nonnull public static org.locationtech.jts.geom.Point toPoint(@Nonnull org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)
-
toLineString
@Nonnull public static org.locationtech.jts.geom.LineString toLineString(@Nonnull org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)
-
toAngleRadians
public static double toAngleRadians(@Nonnull org.locationtech.jts.geom.Point s1, @Nonnull org.locationtech.jts.geom.Point e1, @Nonnull org.locationtech.jts.geom.Point s2, @Nonnull org.locationtech.jts.geom.Point e2)
-
toAzimuthRadians
public static double toAzimuthRadians(@Nonnull org.locationtech.jts.geom.Point p1, @Nonnull org.locationtech.jts.geom.Point p2)
-
toGeometry
@Nonnull public static org.locationtech.jts.geom.Geometry toGeometry(@Nonnull org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)
-
toBitValue
public static int toBitValue(boolean value)
-
populate
public static void populate(@Nonnull byte[] bytes, @Nonnull org.apache.arrow.memory.ArrowBuf buffer, @Nonnull org.apache.arrow.vector.holders.NullableVarCharHolder holder)
-
populate
public static void populate(@Nonnull byte[] bytes, @Nonnull org.apache.arrow.memory.ArrowBuf buffer, @Nonnull org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)
-
append
public static void append(@Nonnull byte[] bytes, @Nonnull org.apache.arrow.memory.ArrowBuf buffer, @Nonnull org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)
-
isAPoint
public static boolean isAPoint(@Nullable org.locationtech.jts.geom.Geometry geometry)
-
isAreal
public static boolean isAreal(@Nullable org.locationtech.jts.geom.Geometry geometry)
-
isACollection
public static boolean isACollection(@Nullable org.locationtech.jts.geom.Geometry geometry)
-
isLinear
public static boolean isLinear(@Nullable org.locationtech.jts.geom.Geometry geometry)
-
isHolderSet
public static boolean isHolderSet(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
markHolderSet
public static void markHolderSet(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
markHolderNotSet
public static void markHolderNotSet(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
isValueTrue
public static boolean isValueTrue(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
isValueFalse
public static boolean isValueFalse(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
setValueFalse
public static void setValueFalse(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
setValueTrue
public static void setValueTrue(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
enlargeBufferIfNeeded
public static org.apache.arrow.memory.ArrowBuf enlargeBufferIfNeeded(@Nonnull org.apache.arrow.memory.ArrowBuf buffer, long required)
-
-