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 boolean areHoldersSet​(org.apache.arrow.vector.holders.ValueHolder... holders)  
      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 getBooleanValue​(org.apache.arrow.vector.holders.ValueHolder holder)  
      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 isClosed​(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 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 setBooleanValue​(org.apache.arrow.vector.holders.ValueHolder holder, boolean value)  
      static void setDoubleValue​(org.apache.arrow.vector.holders.ValueHolder holder, double value)  
      static void setIntValue​(org.apache.arrow.vector.holders.ValueHolder holder, int value)  
      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 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.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.Geometry toGeometryFromEWKT​(org.apache.arrow.vector.holders.NullableVarCharHolder holder)  
      static org.locationtech.jts.geom.Geometry toGeometryFromGeoJson​(org.apache.arrow.vector.holders.NullableVarCharHolder 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 GeometryValidationResult validate​(org.locationtech.jts.geom.Geometry geometry, int flags)  
      static void verifyMatchingSRIDs​(org.locationtech.jts.geom.Geometry g1, org.locationtech.jts.geom.Geometry g2)  
    • Method Detail

      • emptyGeometry

        public static org.locationtech.jts.geom.Geometry emptyGeometry()
      • 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)
      • toGeometryFromGeoJson

        @Nonnull
        public static org.locationtech.jts.geom.Geometry toGeometryFromGeoJson​(@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)
      • 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)
      • verifyMatchingSRIDs

        public static void verifyMatchingSRIDs​(@Nonnull
                                               org.locationtech.jts.geom.Geometry g1,
                                               @Nonnull
                                               org.locationtech.jts.geom.Geometry g2)