Fil / d3-tricontour

Create contours from non-gridded data with meandering triangles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculating aspects and slopes/gradients of triangle surfaces

osper66 opened this issue · comments

Any plan or idea for this?

Thanks for advance.

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

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.

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.