You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, your code is not working as expected
for RGB geotiff with 3 active bands when you set transpValue you should check for all the three r,g,b values matches the trasnpValue, not only for the alphaBand specified, your case is useful for single layer geotiff but for three bands rgb, to avoid holes in the final composite rapresentation, the transpValue:0 should match the rgb(0,0,0)
const a = this.options.transpValue ? data[this.options.alphaBand].map(v => {
return v == this.options.transpValue ? 0 : 255;
}) : data[this.options.alphaBand];
The text was updated successfully, but these errors were encountered:
Hi, your code is not working as expected
for RGB geotiff with 3 active bands when you set transpValue you should check for all the three r,g,b values matches the trasnpValue, not only for the alphaBand specified, your case is useful for single layer geotiff but for three bands rgb, to avoid holes in the final composite rapresentation, the transpValue:0 should match the rgb(0,0,0)
The text was updated successfully, but these errors were encountered: