User Tools

Site Tools


qgis_hydrology

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

qgis_hydrology [2021/02/17 10:22] – created bushwalkingqgis_hydrology [2023/03/06 08:40] (current) – external edit 127.0.0.1
Line 90: Line 90:
 Open Attribute Table (F6), enable editing (Ctrl+E) and Open Field Calculator (Ctrl+I). Open Attribute Table (F6), enable editing (Ctrl+E) and Open Field Calculator (Ctrl+I).
  
-The following formula looks at the values in the underlying D8FlowLog layer at the start and end of each line and takes the largest, which is a reasonable approximation for stream size. The field type should be int, and the name can be whatever you want (I use Category). Note that you'd need to replace D8FlowLog in the formula below with your relevant layer id.+The following formula looks at the values in the underlying D8FlowLog layer at the start and end of each line and takes the smallest, which is a reasonable approximation for stream size. The field type should be int, and the name can be whatever you want (I use Category). Note that you'd need to replace D8FlowLog in the formula below with your relevant layer id.
  
-<code>ceil(max(raster_value( 'D8FlowLog',1,make_point( $x_at(0),$y_at(0))),raster_value( 'D8FlowLog',1,make_point( $x_at(-1),$y_at(-1)))))-5 </code>+<code>ceil(min(raster_value( 'D8FlowLog',1,make_point( $x_at(0),$y_at(0))),raster_value( 'D8FlowLog',1,make_point( $x_at(-1),$y_at(-1)))))-5 </code>
  
  
qgis_hydrology.1613517727.txt.gz · Last modified: 2021/02/17 10:22 by bushwalking

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki