deal with null extent polygon case

This commit is contained in:
wyq 2025-07-28 08:28:56 +08:00
parent 03863054b3
commit c2c3ec2a64

View File

@ -670,7 +670,7 @@ public class ProjectionUtil {
if (polygons.size() > 0) {
((PolygonZShape) aPGS).setPolygons(polygons);
return aPGS;
return aPGS.getExtent() == null ? null : aPGS;
} else {
return null;
}
@ -721,7 +721,7 @@ public class ProjectionUtil {
if (polygons.size() > 0) {
aPGS.setPolygons(polygons);
return aPGS;
return aPGS.getExtent() == null ? null : aPGS;
} else {
return null;
}