Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculating aspects and slopes/gradients of triangle surfaces #6

Closed
osper66 opened this issue Mar 10, 2021 · 4 comments
Closed

Calculating aspects and slopes/gradients of triangle surfaces #6

osper66 opened this issue Mar 10, 2021 · 4 comments

Comments

@osper66
Copy link

osper66 commented Mar 10, 2021

Any plan or idea for this?

Thanks for advance.

@Fil
Copy link
Owner

Fil commented Mar 10, 2021

I'm sorry I dont understand the question. But I'm curious—do you have an example?

@osper66
Copy link
Author

osper66 commented Mar 10, 2021

About aspects and gradients described in following(page 9-13).

http://www.fresnostate.edu/csm/ees/documents/facstaff/wang/gis200/lecture-notes/gis/chap13.pdf

ArcGIS Pro and QGIS(https://docs.qgis.org/2.14/en/docs/training_manual/rasters/terrain_analysis.html)
has terrain analysis function including these.

@Fil
Copy link
Owner

Fil commented Mar 12, 2021

Right, but this would be related to the triangulation, not the contours?

It should be relatively easy to compute :

  • the normal to triangle ABC is the cross-product AB x AC, normalized to 1 (x, y, z)
  • the slope's cosine is the vertical component of the normal (z)
  • the aspect is atan2(y, x)

Let me know if you have a concrete dataset that would benefit from this.

@Fil Fil closed this as completed Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants