Skip to content

Commit fea7dca

Browse files
Don't bail out when gdal-async can't find srs
1 parent efcdce8 commit fea7dca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/spatial-uploads-handler/src/geostatsForVectorLayer.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ export async function geostatsForVectorLayers(
6868
hasZ: false,
6969
} as GeostatsLayer;
7070
const dataset = await gdal.openAsync(filepath);
71-
if (dataset.srs === null) {
72-
throw new Error("No spatial reference system found in dataset.");
73-
}
71+
// if (dataset.srs === null) {
72+
// throw new Error("No spatial reference system found in dataset.");
73+
// }
7474
dataset.layers.forEach((lyr, lidx) => {
7575
const extent = lyr.getExtent();
7676
if (extent) {

0 commit comments

Comments
 (0)