Skip to content

Commit 4cb846f

Browse files
committed
修复 Java 8 兼容
1 parent 08d2889 commit 4cb846f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
<hive.version>2.3.8</hive.version>
3838
<hadoop.version>2.10.1</hadoop.version>
3939

40-
<gt-main.version>30.1</gt-main.version>
41-
<gt-epsg-hsql.version>30.2</gt-epsg-hsql.version>
40+
<gt-main.version>28.5</gt-main.version>
41+
<gt-epsg-hsql.version>28.5</gt-epsg-hsql.version>
4242
<gson.version>2.10.1</gson.version>
4343
<guava.version>33.0.0-jre</guava.version>
4444
<jackson.version>2.16.1</jackson.version>

src/main/java/tech/leovan/hive/udf/geo/PolygonAreaUDF.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
package tech.leovan.hive.udf.geo;
22

3+
import tech.leovan.hive.udf.utils.GeoUtils;
34
import org.apache.hadoop.hive.ql.exec.Description;
45
import org.apache.hadoop.hive.ql.exec.UDF;
5-
import org.geotools.api.referencing.crs.CoordinateReferenceSystem;
6-
import org.geotools.api.referencing.operation.MathTransform;
76
import org.geotools.geometry.jts.JTS;
87
import org.geotools.referencing.CRS;
98
import org.locationtech.jts.geom.Geometry;
109
import org.locationtech.jts.geom.MultiPolygon;
1110
import org.locationtech.jts.geom.Polygon;
1211
import org.locationtech.spatial4j.context.jts.JtsSpatialContext;
1312
import org.locationtech.spatial4j.shape.Shape;
14-
import tech.leovan.hive.udf.utils.GeoUtils;
13+
import org.opengis.referencing.crs.CoordinateReferenceSystem;
14+
import org.opengis.referencing.operation.MathTransform;
1515

1616
@Description(
1717
name = "POLYGON_AREA",

0 commit comments

Comments
 (0)