@math.gl/geospatial 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/line-simplification.d.ts +7 -0
- package/dist/line-simplification.d.ts.map +1 -1
- package/dist/line-simplification.js +4 -13
- package/dist/line-simplification.js.map +1 -1
- package/dist/linear-referencing.d.ts +13 -1
- package/dist/linear-referencing.d.ts.map +1 -1
- package/dist/linear-referencing.js +29 -9
- package/dist/linear-referencing.js.map +1 -1
- package/dist/measure-referencing.d.ts +16 -0
- package/dist/measure-referencing.d.ts.map +1 -0
- package/dist/measure-referencing.js +143 -0
- package/dist/measure-referencing.js.map +1 -0
- package/dist/polygon-simplification.d.ts +6 -0
- package/dist/polygon-simplification.d.ts.map +1 -0
- package/dist/polygon-simplification.js +141 -0
- package/dist/polygon-simplification.js.map +1 -0
- package/dist/spatial-box-clipping.d.ts +9 -0
- package/dist/spatial-box-clipping.d.ts.map +1 -0
- package/dist/spatial-box-clipping.js +123 -0
- package/dist/spatial-box-clipping.js.map +1 -0
- package/dist/spatial-dwithin.d.ts +19 -0
- package/dist/spatial-dwithin.d.ts.map +1 -0
- package/dist/spatial-dwithin.js +107 -0
- package/dist/spatial-dwithin.js.map +1 -0
- package/dist/spatial-hulls.d.ts +6 -0
- package/dist/spatial-hulls.d.ts.map +1 -0
- package/dist/spatial-hulls.js +176 -0
- package/dist/spatial-hulls.js.map +1 -0
- package/dist/spatial-line-intersection-result.d.ts +4 -0
- package/dist/spatial-line-intersection-result.d.ts.map +1 -0
- package/dist/spatial-line-intersection-result.js +79 -0
- package/dist/spatial-line-intersection-result.js.map +1 -0
- package/dist/spatial-line-polygon-intersection.d.ts +4 -0
- package/dist/spatial-line-polygon-intersection.d.ts.map +1 -0
- package/dist/spatial-line-polygon-intersection.js +130 -0
- package/dist/spatial-line-polygon-intersection.js.map +1 -0
- package/dist/spatial-planar-intersects.d.ts +11 -0
- package/dist/spatial-planar-intersects.d.ts.map +1 -1
- package/dist/spatial-planar-intersects.js +20 -12
- package/dist/spatial-planar-intersects.js.map +1 -1
- package/dist/spatial-planar.d.ts +9 -0
- package/dist/spatial-planar.d.ts.map +1 -1
- package/dist/spatial-planar.js +13 -1
- package/dist/spatial-planar.js.map +1 -1
- package/dist/spatial-polygon-overlay.d.ts +5 -0
- package/dist/spatial-polygon-overlay.d.ts.map +1 -0
- package/dist/spatial-polygon-overlay.js +23 -0
- package/dist/spatial-polygon-overlay.js.map +1 -0
- package/dist/spatial-sql.d.ts +13 -2
- package/dist/spatial-sql.d.ts.map +1 -1
- package/dist/spatial-sql.js +30 -12
- package/dist/spatial-sql.js.map +1 -1
- package/dist/spatial-subdivision.d.ts +9 -0
- package/dist/spatial-subdivision.d.ts.map +1 -0
- package/dist/spatial-subdivision.js +61 -0
- package/dist/spatial-subdivision.js.map +1 -0
- package/dist/spatial-touches.d.ts +13 -0
- package/dist/spatial-touches.d.ts.map +1 -0
- package/dist/spatial-touches.js +192 -0
- package/dist/spatial-touches.js.map +1 -0
- package/dist/st-functions.cjs +2411 -112
- package/dist/st-functions.cjs.map +3 -3
- package/dist/st-functions.d.ts +67 -2
- package/dist/st-functions.d.ts.map +1 -1
- package/dist/st-functions.js +195 -12
- package/dist/st-functions.js.map +1 -1
- package/dist/st-geodesic-functions.d.ts +33 -0
- package/dist/st-geodesic-functions.d.ts.map +1 -0
- package/dist/st-geodesic-functions.js +84 -0
- package/dist/st-geodesic-functions.js.map +1 -0
- package/dist/st-hull-functions.cjs +386 -0
- package/dist/st-hull-functions.cjs.map +6 -0
- package/dist/st-hull-functions.d.ts +17 -0
- package/dist/st-hull-functions.d.ts.map +1 -0
- package/dist/st-hull-functions.js +14 -0
- package/dist/st-hull-functions.js.map +1 -0
- package/dist/st-overlay-functions.cjs +621 -0
- package/dist/st-overlay-functions.cjs.map +6 -0
- package/dist/st-overlay-functions.d.ts +36 -0
- package/dist/st-overlay-functions.d.ts.map +1 -0
- package/dist/st-overlay-functions.js +183 -0
- package/dist/st-overlay-functions.js.map +1 -0
- package/dist/st-viewport-functions.cjs +481 -0
- package/dist/st-viewport-functions.cjs.map +6 -0
- package/dist/st-viewport-functions.d.ts +13 -0
- package/dist/st-viewport-functions.d.ts.map +1 -0
- package/dist/st-viewport-functions.js +81 -0
- package/dist/st-viewport-functions.js.map +1 -0
- package/dist/terrain/index.cjs +93 -20
- package/dist/terrain/index.cjs.map +3 -3
- package/dist/terrain/index.d.ts +1 -0
- package/dist/terrain/index.d.ts.map +1 -1
- package/dist/terrain/index.js +1 -0
- package/dist/terrain/index.js.map +1 -1
- package/dist/terrain/regional-watersheds.d.ts +44 -0
- package/dist/terrain/regional-watersheds.d.ts.map +1 -0
- package/dist/terrain/regional-watersheds.js +108 -0
- package/dist/terrain/regional-watersheds.js.map +1 -0
- package/dist/terrain/tile-cutout-update.d.ts.map +1 -1
- package/dist/terrain/tile-cutout-update.js +28 -22
- package/dist/terrain/tile-cutout-update.js.map +1 -1
- package/dist/turf-functions.cjs +16 -9
- package/dist/turf-functions.cjs.map +1 -1
- package/package.json +21 -6
- package/src/line-simplification.ts +4 -16
- package/src/linear-referencing.ts +44 -16
- package/src/measure-referencing.ts +165 -0
- package/src/polygon-simplification.ts +185 -0
- package/src/spatial-box-clipping.ts +140 -0
- package/src/spatial-dwithin.ts +135 -0
- package/src/spatial-hulls.ts +203 -0
- package/src/spatial-line-intersection-result.ts +93 -0
- package/src/spatial-line-polygon-intersection.ts +147 -0
- package/src/spatial-planar-intersects.ts +21 -15
- package/src/spatial-planar.ts +20 -1
- package/src/spatial-polygon-overlay.ts +30 -0
- package/src/spatial-sql.ts +47 -12
- package/src/spatial-subdivision.ts +75 -0
- package/src/spatial-touches.ts +218 -0
- package/src/st-functions.ts +283 -15
- package/src/st-geodesic-functions.ts +121 -0
- package/src/st-hull-functions.ts +25 -0
- package/src/st-overlay-functions.ts +244 -0
- package/src/st-viewport-functions.ts +98 -0
- package/src/terrain/index.ts +7 -0
- package/src/terrain/regional-watersheds.ts +153 -0
- package/src/terrain/tile-cutout-update.ts +32 -26
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial-subdivision.d.ts","sourceRoot":"","sources":["../src/spatial-subdivision.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAW3D,8DAA8D;AAC9D,KAAK,OAAO,GAAG,OAAO,CAAC,iBAAiB,EAAE;IAAC,IAAI,EAAE,SAAS,CAAA;CAAC,CAAC,CAAC;AAsB7D,6FAA6F;AAC7F,wBAAiB,iBAAiB,CAChC,QAAQ,EAAE,iBAAiB,EAC3B,MAAM,CAAC,EAAE,WAAW,GACnB,SAAS,CAAC,OAAO,CAAC,CAQpB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
import { vertexCount } from "./geometry-inspection.js";
|
|
5
|
+
import { clipPolygons } from "./spatial-box-clipping.js";
|
|
6
|
+
import { planarBounds } from "./spatial-planar.js";
|
|
7
|
+
/** Default vertex ceiling for ST_Subdivide, including polygon closures. */
|
|
8
|
+
const MAX_VERTICES = 256;
|
|
9
|
+
/** Maximum bisection depth before reporting an unrepresentable split. */
|
|
10
|
+
const MAX_DEPTH = 64;
|
|
11
|
+
/** Splits a rectangle at the midpoint of its wider axis. */
|
|
12
|
+
function splitBox(box) {
|
|
13
|
+
const [minX, minY, maxX, maxY] = box;
|
|
14
|
+
if (maxX - minX >= maxY - minY) {
|
|
15
|
+
const mid = minX / 2 + maxX / 2;
|
|
16
|
+
if (mid > minX && mid < maxX)
|
|
17
|
+
return [
|
|
18
|
+
[minX, minY, mid, maxY],
|
|
19
|
+
[mid, minY, maxX, maxY]
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
const mid = minY / 2 + maxY / 2;
|
|
23
|
+
if (mid > minY && mid < maxY)
|
|
24
|
+
return [
|
|
25
|
+
[minX, minY, maxX, mid],
|
|
26
|
+
[minX, mid, maxX, maxY]
|
|
27
|
+
];
|
|
28
|
+
throw new Error('ST_Subdivide cannot bisect the polygon at the available coordinate precision');
|
|
29
|
+
}
|
|
30
|
+
/** Emits bounded polygon parts with rectilinear cuts, retaining holes through each split. */
|
|
31
|
+
export function* subdividePolygons(geometry, signal) {
|
|
32
|
+
if (geometry.type !== 'Polygon' && geometry.type !== 'MultiPolygon') {
|
|
33
|
+
throw new Error('ST_Subdivide requires a Polygon or MultiPolygon');
|
|
34
|
+
}
|
|
35
|
+
const polygons = geometry.type === 'Polygon' ? [geometry.coordinates] : geometry.coordinates;
|
|
36
|
+
for (const coordinates of polygons) {
|
|
37
|
+
yield* subdividePolygon({ type: 'Polygon', coordinates }, 0, signal);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/** Recursively subdivides a single polygon until each piece fits the vertex budget. */
|
|
41
|
+
function* subdividePolygon(polygon, depth, signal) {
|
|
42
|
+
signal?.throwIfAborted();
|
|
43
|
+
const count = vertexCount(polygon);
|
|
44
|
+
if (!count)
|
|
45
|
+
return;
|
|
46
|
+
if (count <= MAX_VERTICES) {
|
|
47
|
+
yield polygon;
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
if (depth >= MAX_DEPTH)
|
|
51
|
+
throw new Error('ST_Subdivide could not reach the vertex limit');
|
|
52
|
+
const bounds = planarBounds(polygon);
|
|
53
|
+
if (!bounds?.every(Number.isFinite))
|
|
54
|
+
throw new Error('ST_Subdivide requires finite polygon bounds');
|
|
55
|
+
for (const box of splitBox(bounds)) {
|
|
56
|
+
for (const coordinates of clipPolygons([polygon.coordinates], box)) {
|
|
57
|
+
yield* subdividePolygon({ type: 'Polygon', coordinates }, depth + 1, signal);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=spatial-subdivision.js.map
|
|
@@ -0,0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AAE,CAAC;YACnE,KAAK,CAAC,CAAC,gBAAgB,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,WAAW,EAAC,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QAC7E,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { WellKnownGeometry } from '@math.gl/core/arrow';
|
|
2
|
+
/** XY position and ordered path. */
|
|
3
|
+
type Position = readonly number[];
|
|
4
|
+
/** Endpoints of one planar segment. */
|
|
5
|
+
type Edge = readonly [Position, Position];
|
|
6
|
+
/** Finds shared endpoints, including an endpoint lying in the other segment's interior. */
|
|
7
|
+
export declare function endpointContacts(a: Edge, b: Edge): Position[];
|
|
8
|
+
/** Finds a segment parameter on its axis with the least relative rounding error. */
|
|
9
|
+
export declare function parameter(point: Position, [a, b]: Edge): number;
|
|
10
|
+
/** Reports any geometric contact without intersection between the two interiors. */
|
|
11
|
+
export declare function planarTouches(a: WellKnownGeometry, b: WellKnownGeometry): boolean;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=spatial-touches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial-touches.d.ts","sourceRoot":"","sources":["../src/spatial-touches.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAU3D,oCAAoC;AACpC,KAAK,QAAQ,GAAG,SAAS,MAAM,EAAE,CAAC;AAGlC,uCAAuC;AACvC,KAAK,IAAI,GAAG,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAmE1C,2FAA2F;AAC3F,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE,CAY7D;AAyCD,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAI/D;AAyDD,oFAAoF;AACpF,wBAAgB,aAAa,CAAC,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAcjF"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
import polygonClipping from 'polygon-clipping';
|
|
5
|
+
import { locatePointInPolygon, planarIntersects, pointOnSegment, segmentsMeet } from "./spatial-planar-intersects.js";
|
|
6
|
+
import { polygonSet } from "./spatial-polygon-overlay.js";
|
|
7
|
+
/** Narrows the geometry types containing only points. */
|
|
8
|
+
function isPointLike(geometry) {
|
|
9
|
+
return geometry.type === 'Point' || geometry.type === 'MultiPoint';
|
|
10
|
+
}
|
|
11
|
+
/** Narrows line and multiline geometries. */
|
|
12
|
+
function isLinear(geometry) {
|
|
13
|
+
return geometry.type === 'LineString' || geometry.type === 'MultiLineString';
|
|
14
|
+
}
|
|
15
|
+
/** Narrows polygon and multipolygon geometries. */
|
|
16
|
+
function isAreal(geometry) {
|
|
17
|
+
return geometry.type === 'Polygon' || geometry.type === 'MultiPolygon';
|
|
18
|
+
}
|
|
19
|
+
/** Returns independent line components. */
|
|
20
|
+
function paths(geometry) {
|
|
21
|
+
return geometry.type === 'LineString' ? [geometry.coordinates] : geometry.coordinates;
|
|
22
|
+
}
|
|
23
|
+
/** Returns independent areal components with their interior rings. */
|
|
24
|
+
function polygons(geometry) {
|
|
25
|
+
return geometry.type === 'Polygon' ? [geometry.coordinates] : geometry.coordinates;
|
|
26
|
+
}
|
|
27
|
+
/** Compares planar coordinates without imposing a distance tolerance. */
|
|
28
|
+
function samePoint(a, b) {
|
|
29
|
+
return a[0] === b[0] && a[1] === b[1];
|
|
30
|
+
}
|
|
31
|
+
/** Keys an XY location, including equivalent positive and negative zero. */
|
|
32
|
+
function pointKey(point) {
|
|
33
|
+
return `${point[0]}/${point[1]}`;
|
|
34
|
+
}
|
|
35
|
+
/** Iterates nonzero segments and implicitly closes rings. */
|
|
36
|
+
function* edges(components, closed = false) {
|
|
37
|
+
for (const path of components) {
|
|
38
|
+
for (let i = closed ? 0 : 1; i < path.length; i++) {
|
|
39
|
+
const a = path[i ? i - 1 : path.length - 1];
|
|
40
|
+
const b = path[i];
|
|
41
|
+
if (!samePoint(a, b))
|
|
42
|
+
yield [a, b];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/** Computes the line boundary using odd endpoint incidence across all components. */
|
|
47
|
+
function lineBoundary(components) {
|
|
48
|
+
const boundary = new Map();
|
|
49
|
+
for (const component of components) {
|
|
50
|
+
if (!component.length)
|
|
51
|
+
continue;
|
|
52
|
+
for (const point of [component[0], component[component.length - 1]]) {
|
|
53
|
+
const key = pointKey(point);
|
|
54
|
+
if (!boundary.delete(key))
|
|
55
|
+
boundary.set(key, point);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return boundary;
|
|
59
|
+
}
|
|
60
|
+
/** Finds shared endpoints, including an endpoint lying in the other segment's interior. */
|
|
61
|
+
export function endpointContacts(a, b) {
|
|
62
|
+
const contacts = [];
|
|
63
|
+
for (const [endpoints, other] of [
|
|
64
|
+
[a, b],
|
|
65
|
+
[b, a]
|
|
66
|
+
]) {
|
|
67
|
+
for (const point of endpoints) {
|
|
68
|
+
if (pointOnSegment(point, ...other) && !contacts.some(value => samePoint(value, point)))
|
|
69
|
+
contacts.push(point);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return contacts;
|
|
73
|
+
}
|
|
74
|
+
/** Tests whether any odd endpoint is also on both segments of a proper crossing. */
|
|
75
|
+
function hasBoundaryCrossing(boundary, a, b) {
|
|
76
|
+
for (const point of boundary.values()) {
|
|
77
|
+
if (pointOnSegment(point, ...a) && pointOnSegment(point, ...b))
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
/** Detects line interior overlap, accounting for the whole multiline boundary. */
|
|
83
|
+
function lineInteriorsMeet(a, b) {
|
|
84
|
+
const aPaths = paths(a);
|
|
85
|
+
const bPaths = paths(b);
|
|
86
|
+
const aBoundary = lineBoundary(aPaths);
|
|
87
|
+
const bBoundary = lineBoundary(bPaths);
|
|
88
|
+
const bEdges = [...edges(bPaths)];
|
|
89
|
+
for (const left of edges(aPaths)) {
|
|
90
|
+
for (const right of bEdges) {
|
|
91
|
+
if (!segmentsMeet(...left, ...right))
|
|
92
|
+
continue;
|
|
93
|
+
const contacts = endpointContacts(left, right);
|
|
94
|
+
if (contacts.length > 1)
|
|
95
|
+
return true;
|
|
96
|
+
if (contacts.length) {
|
|
97
|
+
const key = pointKey(contacts[0]);
|
|
98
|
+
if (!aBoundary.has(key) && !bBoundary.has(key))
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
else if (!hasBoundaryCrossing(aBoundary, left, right) &&
|
|
102
|
+
!hasBoundaryCrossing(bBoundary, left, right)) {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
/** Tests a point against the interior of any areal component. */
|
|
110
|
+
function insideArea(point, areas) {
|
|
111
|
+
return areas.some(rings => locatePointInPolygon(point, rings) === 1);
|
|
112
|
+
}
|
|
113
|
+
/** Finds a segment parameter on its axis with the least relative rounding error. */
|
|
114
|
+
export function parameter(point, [a, b]) {
|
|
115
|
+
const dx = b[0] - a[0];
|
|
116
|
+
const dy = b[1] - a[1];
|
|
117
|
+
return Math.abs(dx) >= Math.abs(dy) ? (point[0] - a[0]) / dx : (point[1] - a[1]) / dy;
|
|
118
|
+
}
|
|
119
|
+
/** Tests intervals between area boundary contacts, excluding coincident boundary segments. */
|
|
120
|
+
function segmentEntersArea(edge, boundaries, areas) {
|
|
121
|
+
const [a, b] = edge;
|
|
122
|
+
if (insideArea(a, areas) || insideArea(b, areas))
|
|
123
|
+
return true;
|
|
124
|
+
const cuts = new Set([0, 1]);
|
|
125
|
+
const coincident = [];
|
|
126
|
+
for (const boundary of boundaries) {
|
|
127
|
+
if (!segmentsMeet(...edge, ...boundary))
|
|
128
|
+
continue;
|
|
129
|
+
const contacts = endpointContacts(edge, boundary).map(point => parameter(point, edge));
|
|
130
|
+
if (!contacts.length)
|
|
131
|
+
return true;
|
|
132
|
+
for (const contact of contacts)
|
|
133
|
+
cuts.add(contact);
|
|
134
|
+
if (contacts.length === 2)
|
|
135
|
+
coincident.push([Math.min(...contacts), Math.max(...contacts)]);
|
|
136
|
+
}
|
|
137
|
+
const sorted = [...cuts].sort((left, right) => left - right);
|
|
138
|
+
for (let i = 1; i < sorted.length; i++) {
|
|
139
|
+
const from = sorted[i - 1];
|
|
140
|
+
const to = sorted[i];
|
|
141
|
+
if (coincident.some(([start, end]) => start <= from && to <= end))
|
|
142
|
+
continue;
|
|
143
|
+
const t = (from + to) / 2;
|
|
144
|
+
if (insideArea([(1 - t) * a[0] + t * b[0], (1 - t) * a[1] + t * b[1]], areas))
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
/** Finds any line segment that enters an areal interior. */
|
|
150
|
+
function lineEntersArea(line, area) {
|
|
151
|
+
const areas = polygons(area);
|
|
152
|
+
const boundaries = [...edges(areas.flat(), true)];
|
|
153
|
+
for (const edge of edges(paths(line))) {
|
|
154
|
+
if (segmentEntersArea(edge, boundaries, areas))
|
|
155
|
+
return true;
|
|
156
|
+
}
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
/** Checks point locations against the other geometry's interior. */
|
|
160
|
+
function pointsMeetInterior(points, other) {
|
|
161
|
+
const positions = points.type === 'Point' ? [points.coordinates] : points.coordinates;
|
|
162
|
+
if (isAreal(other)) {
|
|
163
|
+
const areas = polygons(other);
|
|
164
|
+
return positions.some(point => Number.isFinite(point[0]) && Number.isFinite(point[1]) && insideArea(point, areas));
|
|
165
|
+
}
|
|
166
|
+
const linePaths = paths(other);
|
|
167
|
+
const boundary = lineBoundary(linePaths);
|
|
168
|
+
const segments = [...edges(linePaths)];
|
|
169
|
+
return positions.some(point => !boundary.has(pointKey(point)) && segments.some(edge => pointOnSegment(point, ...edge)));
|
|
170
|
+
}
|
|
171
|
+
/** Reports any geometric contact without intersection between the two interiors. */
|
|
172
|
+
export function planarTouches(a, b) {
|
|
173
|
+
if ((!isPointLike(a) && !isLinear(a) && !isAreal(a)) ||
|
|
174
|
+
(!isPointLike(b) && !isLinear(b) && !isAreal(b)))
|
|
175
|
+
throw new Error('ST_Touches requires point, line or polygon geometry');
|
|
176
|
+
if (isPointLike(a) && isPointLike(b))
|
|
177
|
+
return false;
|
|
178
|
+
if (!planarIntersects(a, b))
|
|
179
|
+
return false;
|
|
180
|
+
if (isPointLike(a) && !isPointLike(b))
|
|
181
|
+
return !pointsMeetInterior(a, b);
|
|
182
|
+
if (isPointLike(b) && !isPointLike(a))
|
|
183
|
+
return !pointsMeetInterior(b, a);
|
|
184
|
+
if (isLinear(a) && isLinear(b))
|
|
185
|
+
return !lineInteriorsMeet(a, b);
|
|
186
|
+
if (isLinear(a) && isAreal(b))
|
|
187
|
+
return !lineEntersArea(a, b);
|
|
188
|
+
if (isAreal(a) && isLinear(b))
|
|
189
|
+
return !lineEntersArea(b, a);
|
|
190
|
+
return !polygonClipping.intersection(polygonSet(a), polygonSet(b)).length;
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=spatial-touches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spatial-touches.js","sourceRoot":"","sources":["../src/spatial-touches.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAG5D,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,Y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