Skip to content

Commit

Permalink
Don't bail out when gdal-async can't find srs
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Oct 8, 2024
1 parent efcdce8 commit fea7dca
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fea7dca

Please sign in to comment.