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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -