From 7a47c536ff70b82ccdd79266a975ac1285357d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Harrtell?= Date: Tue, 5 May 2020 19:23:27 +0200 Subject: [PATCH] New transpilation --- src/org/locationtech/jts/algorithm/InteriorPointArea.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/locationtech/jts/algorithm/InteriorPointArea.js b/src/org/locationtech/jts/algorithm/InteriorPointArea.js index bd9ca3ea2..e9d240eb1 100644 --- a/src/org/locationtech/jts/algorithm/InteriorPointArea.js +++ b/src/org/locationtech/jts/algorithm/InteriorPointArea.js @@ -3,6 +3,7 @@ import Coordinate from '../geom/Coordinate' import Polygon from '../geom/Polygon' import Double from '../../../../java/lang/Double' import GeometryCollection from '../geom/GeometryCollection' +import OverlayOp from '../operation/overlay/OverlayOp' export default class InteriorPointArea { constructor () { InteriorPointArea.constructor_.apply(this, arguments) @@ -25,7 +26,7 @@ export default class InteriorPointArea { width = 0 intPt = bisector.getCoordinate() } else { - const intersections = bisector.intersection(geometry) + const intersections = OverlayOp.intersection(bisector, geometry) const widestIntersection = this.widestGeometry(intersections) width = widestIntersection.getEnvelopeInternal().getWidth() intPt = InteriorPointArea.centre(widestIntersection.getEnvelopeInternal())