Skip to content

Commit b06e579

Browse files
committed
comment out unused code
1 parent aefd7d7 commit b06e579

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/main/java/com/esri/core/geometry/OperatorDifferenceLocal.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,9 @@ static Geometry multiPointMinusPoint_(MultiPoint multi_point, Point point,
358358
return new_multipoint;
359359
}
360360

361-
static Geometry polylineMinusArea_(Geometry geometry, Geometry area,
361+
/*
362+
This optimization causes a bug when polyline segments are on the boundary.
363+
static Geometry polylineMinusArea_(Geometry geometry, Geometry area,
362364
int area_type, SpatialReference sr, ProgressTracker progress_tracker) {
363365
// construct the complement of the Polygon (or Envelope)
364366
Envelope envelope = new Envelope();
@@ -387,6 +389,6 @@ static Geometry polylineMinusArea_(Geometry geometry, Geometry area,
387389
Geometry difference = operatorIntersection.execute(geometry,
388390
complement, sr, progress_tracker);
389391
return difference;
390-
}
392+
}*/
391393

392394
}

0 commit comments

Comments
 (0)