- Original fork
- Add constructor with s3 base url param
- Add constructor with s3 bucket + prefix param instead.
- Use aws-sdk instead of https to get files. Keeps our bucket private.
- S3 maxRetries=25 (prev. default was 3)
- wrap S3 retry with node-promise-retry
- Add .cache/elevation folder.
- Only fetch from S3 when file is not available locally.
- Log s3 retry error
- Fix fs.exists check
- Fix log only on error for S3 download.
- Filter out height=32,767 from interpolation function.
- Add avg_8pt() method as a fallback for when all four points of the interpolation quadrant are INT_MAX. Instead, we average the surrounding (valid) eight neighbor points>
- Change avg_8pt() to avg_neighbor() with optional radius parameter. This allows the use of pixel rings of radius=1 and radius=2. Radius=1 will average 8 neighbors. Radious=2 will average 24 neighbors.