mapbox / mapbox/mapnik-omnivore
Exit during forward projection of shapefile extent
Open
- Dominant language
- JavaScript
- Stars
- 44
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
If a shapefile has some sort of invalid projection, it isn't able to forward project the extent value. https://github.com/mapbox/mapnik-omnivore/blob/29ead3673df622c773f334ec555d3d749a9c673f/lib/shape.js#L99 and the process bails out. Let's try/catch this to ensure the file is reprojectable.
cc @GretaCB @millzpaugh
Contributor guide
Research direction
Inspect lib/shape.js around line 99, where forward projection of the shapefile extent can terminate processing for an invalid projection. Add handling so the file remains reprojectable instead of bailing out, then verify that an invalid projection no longer exits the process.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100