Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Sep 29, 2024
1 parent 380bdd2 commit d1812fa
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ public OuterShellsExtracter(Geometry polygons) {

private LinearRing[] extractShells() {
LinearRing[] shells = extractShellRings(polygons);
/**
* sort shells in order of increasing envelope area
* to ensure that shells are added before any of their inner shells
*/

//-- sort shells in order of increasing envelope area
Arrays.sort(shells, new EnvelopeAreaComparator());
List<LinearRing> outerShells = new ArrayList<LinearRing>();

//-- Scan shells by decreasing area to ensure that shells are added before any nested shells
for (int i = shells.length - 1; i >= 0; i--) {
LinearRing shell = shells[i];
if (outerShells.size() == 0
Expand Down

0 comments on commit d1812fa

Please sign in to comment.