Segfault with unknown SRS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
When running wmtiff with a tiff that has an unknown srs, we get a segmentation fault in [`gdal.suggestedWarpOutput`](https://github.com/mapbox/node-wmtiff/blob/master/index.js#L49), which isn't caught and leads to some nasty things upstream. I think it would be good to wrap the reprojection process here within a `try/catch`, which is pretty standard for node-gdal.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in index.js at line 49, where gdal.suggestedWarpOutput is called for the reprojection. Reproduce the case with a TIFF containing an unknown SRS, then verify that the reprojection failure is caught instead of propagating a segmentation fault upstream.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100