mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
deal with null extent polygon case
This commit is contained in:
parent
03863054b3
commit
c2c3ec2a64
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user