kylebarron / deck.gl-raster

deck.gl layers and WebGL modules for client-side satellite imagery analysis
https://kylebarron.dev/deck.gl-raster/
MIT License
84 stars 8 forks source link

Use of categorical datasets and sampling integer values #136

Closed lukecoursey closed 5 months ago

lukecoursey commented 6 months ago

Any advice on how to retrieve integer values from an image tile as opposed to RGB float values? I can’t figure out any loader settings to do this correctly, or maybe what i'm trying to do isn't possible.

Use case is I’m dealing with categorical raster datasets (in this case landcover), which use integer values and I’m writing a custom module to calculate the difference / pixel movement between two images, and also a module to reclassify an image. So I’d like to be able to retrieve the integer values from the red and green channels of the resulting vec4 image after running combineBands on the two images.

Thanks