From fea7dcac4161255074c6dad162e9f4661b7ce623 Mon Sep 17 00:00:00 2001 From: Chad Burt Date: Tue, 8 Oct 2024 11:14:05 -0700 Subject: [PATCH] Don't bail out when gdal-async can't find srs --- .../spatial-uploads-handler/src/geostatsForVectorLayer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/spatial-uploads-handler/src/geostatsForVectorLayer.ts b/packages/spatial-uploads-handler/src/geostatsForVectorLayer.ts index a7249019..b7bfbe5c 100644 --- a/packages/spatial-uploads-handler/src/geostatsForVectorLayer.ts +++ b/packages/spatial-uploads-handler/src/geostatsForVectorLayer.ts @@ -68,9 +68,9 @@ export async function geostatsForVectorLayers( hasZ: false, } as GeostatsLayer; const dataset = await gdal.openAsync(filepath); - if (dataset.srs === null) { - throw new Error("No spatial reference system found in dataset."); - } + // if (dataset.srs === null) { + // throw new Error("No spatial reference system found in dataset."); + // } dataset.layers.forEach((lyr, lidx) => { const extent = lyr.getExtent(); if (extent) {