python - Raster values extraction from Shapefile -
i have raster file contains polygons or lines draw mapping features. want extract along these polygons/lines values raster data , plot graph of elevations along pixels. in how extract arbitrary line of values numpy array?. time, polygon not line
you have decide on sampling interval. can add points along line/polygon edges @ desired interval, , extract raster value @ points (using gdal/numpy).
you need mindful of relation between raster resolution , sampling interval avoid artifacts "skipping" pixels or taking 2 samples in same pixel, , might want apply sort of filtering/interpolation on resulting profile.
Comments
Post a Comment