bugfix for projectLayer function

This commit is contained in:
wyq 2024-03-06 20:07:52 +08:00
parent 529ccc28cb
commit d70e2a5d90

View File

@ -272,8 +272,10 @@ public class GeoProjectionUtil {
if (aPLS.getExtent().maxY > cutoff) {
aPLS = GeoComputation.clipPolylineShape_Lat(aPLS, cutoff, false);
}
if (aPLS.getExtent().minY < -cutoff) {
aPLS = GeoComputation.clipPolylineShape_Lat(aPLS, -cutoff, true);
if (aPLS != null) {
if (aPLS.getExtent().minY < -cutoff) {
aPLS = GeoComputation.clipPolylineShape_Lat(aPLS, -cutoff, true);
}
}
break;
}