qgis / QGIS-Documentation

QGIS Documentation
https://docs.qgis.org/latest
464 stars 690 forks source link

Elevation profile plot (Request in QGIS) #7485

Closed qgis-bot closed 1 year ago

qgis-bot commented 2 years ago

Request for documentation

From pull request QGIS/qgis#47990 Author: @nyalldawson QGIS version: 3.26

Elevation profile plot

PR Description:

This PR implements a native elevation profile tool.

Currently supports:

Some demonstrations:

Setting the profile curve line using a map tool:

https://user-images.githubusercontent.com/1829991/160990369-b166d6b3-3dd9-4c32-bcd1-63d069dbc9c2.mp4

The profile chart style for layers can be set in their corresponding layer properties - elevation tab:

image

(Fun fact -- because these are rendered using standard QGIS line symbols, you can go really overboard with your profile tool appearance, by using geometry generators, paint effects, etc...!

image

)

Commits tagged with [need-docs] or [FEATURE]

anitagraser commented 2 years ago

I wonder if it would be worthwhile to include a link to this recent video by @nyalldawson and @timlinux in the docs https://www.youtube.com/watch?v=AknJjNPystU

erentar commented 2 years ago

This absolutely needs to be in the documentation.

jeff-mclean commented 2 years ago

G'day Nyall,

Gotta congratulate you on this plugin. I'm a relative newbie to the gis world. I've been struggling along with the old profile elevation tools on QGIS and had a deuce of a job getting them to work for me. I finally got it, but then 3.26 came along with your plugin, and you smashed it. LOVE the simplicity, and the user-friendliness, and the recording of the presentation you gave was excellent. I rarely watch presos like that, but the bits I saw had you explaining your tool effortlessly. The plugin has honestly made me smile.

Anyway, I was wondering how easy it is to add x and y axis data formatting to the plot. I imagine it might be a bit difficult, but I'd love to convert metres on the x axis to km and show it on the axis. Also things like adding separators and decimal point accuracy. Of course, if that is too difficult, I understand. If you have any thoughts about workarounds, I'd love to hear them.

But looping back, I really appreciate this work you've done. Thanks, from lots of us.

Cheers, Jeff

cefect commented 1 year ago

Thanks for this plugin. Is there something in the pyqgis API that lets me activate a layer as an "elevation surface" (like the above does in the properties GUI)?

agiudiceandrea commented 1 year ago

@felixfeckler when do you plan to add the "Elevation profile" info to the documentation?