I have a raster GeoTIFF file with values from 0 to let's say 5. When I run gdal.polygonize (I'm working with JAVA and GDAL bindings to JAVA) on it, I get features with corresponding polygons.
The problem is that the value of the raster pixels are not passed anywhere and I lose the information about which polygon belongs to which value. Is there any way to store this information anywhere?
PS. Sorry if the question is not clear. This is my first experience with GIS world (and with advanced programming also to be honest :) )