Skip to content

Commit b37b225

Browse files
fix 几何分析 isIntersectRegionWithRect 判断错误
1 parent 7b7aa00 commit b37b225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/util/GeometryAnalysis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export class GeometryAnalysis extends Events {
257257
isIntersectRegionWithRect(feature, left, top, right, bottom, tolerance = 1e-6) {
258258
const ugFeature = geojson2UGGeometry(feature);
259259
const result = this.module._UGCWasm_Geometrist_isIntersectRegionWithRect(ugFeature, left, top, right, bottom, tolerance);
260-
return result === 1;
260+
return result !== 0;
261261
}
262262
/**
263263
* @function GeometryAnalysis.prototype.isOnSameSide

0 commit comments

Comments
 (0)