Skip to content

Commit 4dcad89

Browse files
committed
Fix dimension semantics
1 parent 9884214 commit 4dcad89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

modules/core/src/main/java/org/locationtech/jts/geom/GeometryCollectionDimension.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ private void init(GeometryCollection coll) {
3333
Iterator geomi = new GeometryCollectionIterator(coll);
3434
while (geomi.hasNext()) {
3535
Geometry elem = (Geometry) geomi.next();
36-
if (elem.isEmpty())
37-
continue;
36+
//-- empty elements still determine dimension, to match previous semantics
3837
if (elem instanceof Point) {
3938
hasP = true;
4039
if (dimension < Dimension.P) dimension = Dimension.P;

0 commit comments

Comments
 (0)