etiennesky / profiletool

14 stars 36 forks source link

Flat terrain curve #44

Closed rolfmork closed 6 years ago

rolfmork commented 6 years ago

I use Profile tool v4.0.2 (latest) with QGIS 2.18.14 (latest).

Whenever I select a temporary polyline Profile Tool always presents a flat terrain curve (y values 0.0 for all x values) - see attached screen dump.

This happens despite the fact that there are y values (not equal to zero) in the tables tab - however I note that there is a row no. 2 which has zero-values. My guess is Profile Tool presents the zeros in row no.1 instead of the values in row no. 1.

Can anyone fix this (or teach me settings to fix it)?

Thanks a lot! image image

etiennesky commented 6 years ago

Have you tried changing the Selction in the options box? You have Temporary polyline, but you should select one of the 2 bands in your dem file (the first one).

rolfmork commented 6 years ago

Thanks a lot for your reply, Etienne.

Not sure what you mean by "dem file" though. I selected Temporary polyline, since I want a custom cut throught the terrain. Btw, as an extra info - when in the table tab I click the button "Copy to clipboard", it only copies zeros (no matter if I select the first or second row in the table first). See attached.

To me it seems like the application is only capturing zeros... image

borysiasty commented 6 years ago

Your input raster doesn't contains elevation data in the proper format, it's just contour lines (please google what a DEM raster is). The numbers you see in the table are metres along the profile, and the raster value in all those points is 0, what is apparently true.