Hello! First of all, sorry to revive an old post.
I'm also new to GIS, and needed something similar to this post, but I'm getting only one row of data from my rasters attribute tables.
The script which I'm replying to is creating the CSV files, generating two from four headers (creates objectid and rastername, but not "value" and "count", which are other columns from my attribute table) and writes just the first line of data from my rasters. I attached one example.
Also, it would be better for me to all this data got into one file, is that possible?
Could someone help?
Thanks!