diff --git a/pom.xml b/pom.xml index c0a10ba..80a76be 100644 --- a/pom.xml +++ b/pom.xml @@ -37,8 +37,8 @@ 2.3.8 2.10.1 - 30.1 - 30.2 + 28.5 + 28.5 2.10.1 33.0.0-jre 2.16.1 diff --git a/src/main/java/tech/leovan/hive/udf/geo/PolygonAreaUDF.java b/src/main/java/tech/leovan/hive/udf/geo/PolygonAreaUDF.java index 8caf0be..e58c93d 100644 --- a/src/main/java/tech/leovan/hive/udf/geo/PolygonAreaUDF.java +++ b/src/main/java/tech/leovan/hive/udf/geo/PolygonAreaUDF.java @@ -1,9 +1,8 @@ package tech.leovan.hive.udf.geo; +import tech.leovan.hive.udf.utils.GeoUtils; import org.apache.hadoop.hive.ql.exec.Description; import org.apache.hadoop.hive.ql.exec.UDF; -import org.geotools.api.referencing.crs.CoordinateReferenceSystem; -import org.geotools.api.referencing.operation.MathTransform; import org.geotools.geometry.jts.JTS; import org.geotools.referencing.CRS; import org.locationtech.jts.geom.Geometry; @@ -11,7 +10,8 @@ import org.locationtech.jts.geom.Polygon; import org.locationtech.spatial4j.context.jts.JtsSpatialContext; import org.locationtech.spatial4j.shape.Shape; -import tech.leovan.hive.udf.utils.GeoUtils; +import org.opengis.referencing.crs.CoordinateReferenceSystem; +import org.opengis.referencing.operation.MathTransform; @Description( name = "POLYGON_AREA",