1

I want to perform Slope using PostGIS. I used this query but I got a strange result unit:

create table my_slope as
SELECT ST_Slope(rast,1,'32BF','PERCENT',1, false) as slope
FROM my_raster

I wonder know why I got this strange result.

2

I found the solution.

I must apply st_union then st_transform (to reproject the raster) for 4326 to 2154

create table my_slope as
SELECT ST_Slope(st_transform(st_union(rast),2154),1,'32BF','PERCENT',1, false) as slope
FROM my_raster
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.