Skip to content

Commit 492f234

Browse files
committed
Remove comments about WKT geometry prefixes
Removed comments regarding WKT geometry prefixes for clarity. Signed-off-by: bdjulbic <bdjulbic@foursquare.com>
1 parent 8ef57d2 commit 492f234

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/common-utils/src/data-type.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import {h3IsValid} from './h3-utils';
1111

1212
const H3_ANALYZER_TYPE = 'H3';
1313

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).
14+
// Returns true if the value is likely a WKT geometry string (heuristic check).
1715
const WKT_PREFIX_RE =
1816
/^(?:SRID=\d+\s*;\s*)?(?:POINT|LINESTRING|POLYGON|MULTIPOINT|MULTILINESTRING|MULTIPOLYGON|GEOMETRYCOLLECTION)(?:\s+(?:Z|M|ZM))?\s*\(/i;
1917

0 commit comments

Comments
 (0)