There was an error while loading. Please reload this page.
1 parent 8ef57d2 commit 492f234Copy full SHA for 492f234
1 file changed
src/common-utils/src/data-type.ts
@@ -11,9 +11,7 @@ import {h3IsValid} from './h3-utils';
11
12
const H3_ANALYZER_TYPE = 'H3';
13
14
-// WKT (Well-Known Text) geometry prefixes.
15
-// Keep this intentionally lightweight: we only use it to prevent geometry strings
16
-// from being treated as generic text (e.g. for tooltip field auto-picking).
+// Returns true if the value is likely a WKT geometry string (heuristic check).
17
const WKT_PREFIX_RE =
18
/^(?:SRID=\d+\s*;\s*)?(?:POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)(?:\s+(?:Z|M|ZM))?\s*\(/i;
19
0 commit comments