1

Input Data: I have a sub catchment polygon shapefile, which contain following details

Name Description
TG_ID Name of the Sub-catchment
Hoehe Average height
Slope Average slope
UTM_x_m centroid x value
UTM_y_m centroid y value
Km2 Area

The link to the input data: enter link description here

enter image description here

Workflow that I wish to accomplish:

  1. Create centroid point shapefile of the sub-catchment (vector-->Geometry-->centroid, which take the properties of the polygon shapefile automatically)

enter image description here

enter image description here

  1. Create a line shapefile and connect the centroid of the sub-catchments - manually (How sub-catchments are connected to each other)

enter image description here

  1. Now I am expected to create an “TG_TO” attribute in this centroid shapefile layer, how these sub-catchments are connected to each other. For example, like below

enter image description here

Is there any way to automate this in QGIS model builder ?

5
  • How do you create the line layer?
    – Erik
    Commented Mar 10, 2022 at 9:49
  • I create the line layer manually Commented Mar 10, 2022 at 9:55
  • gis.stackexchange.com/questions/325464/… - this should give you an idea how to achieve your goal.
    – Erik
    Commented Mar 10, 2022 at 10:45
  • @Erik I have already comment on this post to elaborate bit more about the use of that script, I wanted to know how that function works and in which layer (point or line) Commented Mar 10, 2022 at 11:02
  • @M Bain Can you please help on this issue Commented Mar 14, 2022 at 7:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.