Skip to content

Commit

Permalink
CoveragePolygonValidator code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed May 22, 2024
1 parent a025ba5 commit eb195d0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@
import java.util.List;
import java.util.Map;

import org.locationtech.jts.algorithm.locate.IndexedPointInAreaLocator;
import org.locationtech.jts.algorithm.locate.PointOnGeometryLocator;
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Envelope;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.LineSegment;
import org.locationtech.jts.geom.LineString;
import org.locationtech.jts.geom.Location;
import org.locationtech.jts.geom.Polygon;
import org.locationtech.jts.geom.util.PolygonExtracter;
import org.locationtech.jts.noding.MCIndexSegmentSetMutualIntersector;
Expand Down Expand Up @@ -176,7 +173,7 @@ public Geometry validate() {
return createInvalidLines(targetRings);
}

private List<CoveragePolygon> toCoveragePolygons(List<Polygon> polygons) {
private static List<CoveragePolygon> toCoveragePolygons(List<Polygon> polygons) {
List<CoveragePolygon> covPolys = new ArrayList<CoveragePolygon>();
for (Polygon poly : polygons) {
covPolys.add(new CoveragePolygon(poly));
Expand Down

0 comments on commit eb195d0

Please sign in to comment.