Skip to content

Commit

Permalink
Fix dimension semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed Dec 19, 2024
1 parent 9884214 commit 4dcad89
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ private void init(GeometryCollection coll) {
Iterator geomi = new GeometryCollectionIterator(coll);
while (geomi.hasNext()) {
Geometry elem = (Geometry) geomi.next();
if (elem.isEmpty())
continue;
//-- empty elements still determine dimension, to match previous semantics
if (elem instanceof Point) {
hasP = true;
if (dimension < Dimension.P) dimension = Dimension.P;
Expand Down

0 comments on commit 4dcad89

Please sign in to comment.