How can i extract all the values inside shapefile feature overlaying a raster?
Show older comments
Hello all;
I have a shapefile with lots of polygon features in it. what i need is a way to extract each of the pixel values with in each feature and output a histogram for these values. The image is a Geotif.
So basically to put in perspective the code must do;
- select one polygon feature inside the shape file,
- Overlay it with the Raster Geotif,
- get the Geotif pixel values for the selected feature,
- write the pixel values in excel for the specific OBJECTID,
- iterate to the next feature in the shapefile and repeat steps through 1-4 until end of shapefile features.
Any help and guidance is much appreciated.
Kind Regards.
1 Comment
ÖMER
on 18 Oct 2023
Answers (0)
Categories
Find more on Data Import and Export in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!