GeoTIFF / geoblaze

Blazing Fast JavaScript Raster Processing Engine
http://geoblaze.io
MIT License
181 stars 28 forks source link

handle not-a-number values in band arithmetic and raster calculator #130

Closed sdpeyton closed 6 years ago

sdpeyton commented 6 years ago

Type of PR

What is the Goal of the PR?

Fix a bug where NaN values arise in band arithmetic or raster calculator. This will happen if you do something like 0 / 0. Similar to Infinity, this PR will filter out NaN values and replace them with the noDataValue.

What is the Motivation for the PR?

Fix dem bugs

What Tests are Included?

Added a test which deliberately sets NaN results and checks to see if the computed raster has NaN values.