Skip to content

Commit

Permalink
feat(gr-sheet): Make parsing of Geodetic Datum more resilient to vari…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
ribose-jeffreylau committed Dec 30, 2024
1 parent 409ae10 commit 24d55e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gr-sheet/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ const SupportedSheets = {
extentRef,
coordinateReferenceEpoch: item.coordinateReferenceEpoch.trim() || null,
} as const;
if (/geodetic *datum/i.test(item.type)) {
if (/geodetic(?: *datum *)?$/i.test(item.type)) {
const d: Omit<UsePredicates<GeodeticDatumData, 'ellipsoid' | 'primeMeridian'>, keyof CommonGRItemData> = {
...sharedData,
ellipsoid: resolveReference(item.ellipsoid, 'id'),
Expand Down

0 comments on commit 24d55e1

Please sign in to comment.