Skip to content

Commit

Permalink
修复 Java 8 兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
leovan committed Feb 12, 2024
1 parent 08d2889 commit 4cb846f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<hive.version>2.3.8</hive.version>
<hadoop.version>2.10.1</hadoop.version>

<gt-main.version>30.1</gt-main.version>
<gt-epsg-hsql.version>30.2</gt-epsg-hsql.version>
<gt-main.version>28.5</gt-main.version>
<gt-epsg-hsql.version>28.5</gt-epsg-hsql.version>
<gson.version>2.10.1</gson.version>
<guava.version>33.0.0-jre</guava.version>
<jackson.version>2.16.1</jackson.version>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/tech/leovan/hive/udf/geo/PolygonAreaUDF.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
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;
import org.locationtech.jts.geom.MultiPolygon;
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",
Expand Down

0 comments on commit 4cb846f

Please sign in to comment.