Class GeometryHelpers


  • public final class GeometryHelpers
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void append​(byte[] bytes, org.apache.arrow.memory.ArrowBuf buffer, org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)  
      static org.locationtech.jts.geom.Geometry buffer​(org.locationtech.jts.geom.Geometry geometry, double radius, String parameters)  
      static org.locationtech.jts.geom.Geometry emptyGeometry()  
      static org.apache.arrow.memory.ArrowBuf enlargeBufferIfNeeded​(org.apache.arrow.memory.ArrowBuf buffer, long required)  
      static boolean isACollection​(org.locationtech.jts.geom.Geometry geometry)  
      static boolean isAPoint​(org.locationtech.jts.geom.Geometry geometry)  
      static boolean isAreal​(org.locationtech.jts.geom.Geometry geometry)  
      static boolean isHolderSet​(org.apache.arrow.vector.holders.ValueHolder holder)  
      static boolean isLinear​(org.locationtech.jts.geom.Geometry geometry)  
      static boolean isValueFalse​(org.apache.arrow.vector.holders.ValueHolder holder)  
      static boolean isValueTrue​(org.apache.arrow.vector.holders.ValueHolder holder)  
      static void markHolderNotSet​(org.apache.arrow.vector.holders.ValueHolder holder)  
      static void markHolderSet​(org.apache.arrow.vector.holders.ValueHolder holder)  
      static void populate​(byte[] bytes, org.apache.arrow.memory.ArrowBuf buffer, org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)  
      static void populate​(byte[] bytes, org.apache.arrow.memory.ArrowBuf buffer, org.apache.arrow.vector.holders.NullableVarCharHolder holder)  
      static void setValueFalse​(org.apache.arrow.vector.holders.ValueHolder holder)  
      static void setValueTrue​(org.apache.arrow.vector.holders.ValueHolder holder)  
      static double toAngleRadians​(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 double toAzimuthRadians​(org.locationtech.jts.geom.Point p1, org.locationtech.jts.geom.Point p2)  
      static byte[] toBinary​(org.locationtech.jts.geom.Geometry geometry)  
      static int toBitValue​(boolean value)  
      static byte[] toGeoJson​(org.locationtech.jts.geom.Geometry geometry)  
      static org.locationtech.jts.geom.Geometry toGeometry​(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)  
      static org.locationtech.jts.geom.Geometry toGeometry​(org.apache.arrow.vector.holders.NullableVarCharHolder holder)  
      static org.locationtech.jts.geom.GeometryCollection toGeometryCollection​(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)  
      static org.locationtech.jts.geom.LineString toLineString​(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)  
      static org.locationtech.jts.geom.Point toPoint​(org.apache.arrow.vector.holders.NullableVarBinaryHolder holder)  
      static byte[] toText​(org.locationtech.jts.geom.Geometry geometry)  
      static String toUTF8String​(org.apache.arrow.vector.holders.NullableVarCharHolder holder)  
      static String toUTF8String​(org.apache.arrow.vector.holders.VarCharHolder holder)  
    • 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)
      • buffer

        public static org.locationtech.jts.geom.Geometry buffer​(@Nonnull
                                                                org.locationtech.jts.geom.Geometry geometry,
                                                                double radius,
                                                                @Nullable
                                                                String parameters)