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 booleanareHoldersSet(org.apache.arrow.vector.holders.ValueHolder... holders)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 booleangetBooleanValue(org.apache.arrow.vector.holders.ValueHolder holder)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 booleanisClosed(org.locationtech.jts.geom.Geometry geometry)static booleanisHolderSet(org.apache.arrow.vector.holders.ValueHolder holder)static booleanisLinear(org.locationtech.jts.geom.Geometry geometry)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 voidsetBooleanValue(org.apache.arrow.vector.holders.ValueHolder holder, boolean value)static voidsetDoubleValue(org.apache.arrow.vector.holders.ValueHolder holder, double value)static voidsetIntValue(org.apache.arrow.vector.holders.ValueHolder holder, int value)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[]toEWKB(org.locationtech.jts.geom.Geometry geometry)static byte[]toEWKT(org.locationtech.jts.geom.Geometry geometry)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.GeometrytoGeometryFromEWKT(org.apache.arrow.vector.holders.NullableVarCharHolder 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)static GeometryValidationResultvalidate(org.locationtech.jts.geom.Geometry geometry, int flags)static voidverifyMatchingSRIDs(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2)
-
-
-
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)
-
toEWKB
public static byte[] toEWKB(@Nonnull org.locationtech.jts.geom.Geometry geometry)
-
toBinary
public static byte[] toBinary(@Nonnull org.locationtech.jts.geom.Geometry geometry)
-
toText
public static byte[] toText(@Nonnull org.locationtech.jts.geom.Geometry geometry)
-
toEWKT
public static byte[] toEWKT(@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)
-
toGeometryFromEWKT
@Nonnull public static org.locationtech.jts.geom.Geometry toGeometryFromEWKT(@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)
-
isClosed
public static boolean isClosed(@Nullable org.locationtech.jts.geom.Geometry geometry)
-
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)
-
areHoldersSet
public static boolean areHoldersSet(@Nonnull org.apache.arrow.vector.holders.ValueHolder... holders)
-
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)
-
getBooleanValue
public static boolean getBooleanValue(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder)
-
setBooleanValue
public static void setBooleanValue(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder, boolean value)
-
setIntValue
public static void setIntValue(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder, int value)
-
setDoubleValue
public static void setDoubleValue(@Nonnull org.apache.arrow.vector.holders.ValueHolder holder, double value)
-
enlargeBufferIfNeeded
public static org.apache.arrow.memory.ArrowBuf enlargeBufferIfNeeded(@Nonnull org.apache.arrow.memory.ArrowBuf buffer, long required)
-
buffer
public static org.locationtech.jts.geom.Geometry buffer(@Nonnull org.locationtech.jts.geom.Geometry geometry, double radius, @Nullable String parameters)
-
validate
public static GeometryValidationResult validate(@Nonnull org.locationtech.jts.geom.Geometry geometry, int flags)
-
-