I have rasters from the National Elevation Dataset loaded into a Postgres database and am using the built-in function
ST_Slope to calculate the slope. However these contain many holes where there is valid elevation data.
Here is my query:
SELECT (ST_DumpValues(ST_Slope(raster), ARRAY, False)).valarray as slope FROM nat_elev_data LIMIT 1;
I suspect that I need to pass additional parameters but am not sure what.