Closed vlach1989 closed 2 years ago
Hi. I think this might be an issue with bilinear resampling. You can try nearest resampling like so:
new GeoRasterLayer({ georaster, resampleMethod: "nearest" })
Let me know if that fixes it for you!
Hi. It works! Thanks so much for tip as well as quick response!
Hi,
I came accross the following bug. I have a COG where the pixel values are: 0 - no data, 1 - irrigation, 2 - no irrigation. PixelValuesToColorFn is used for styling, where for value 0 no color is applied, the raster is transparent in those places, value 1 is represented by blue color and value 2 is represented by grey color. As you can see in the attached image, strange "edges" are created between the regions.
Expected behavior In this image where the same data is visualized in QGIS you can see the correct behavior.![qgis](https://user-images.githubusercontent.com/16032132/142625631-44b5020f-3924-47a8-91f5-ee856cd658c1.PNG)