Skip to content

Commit

Permalink
Change tree trunk position to be created by 'r.to.vect -c'
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaweinmann committed Nov 25, 2024
1 parent ccc4b7d commit e156127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def main():
input="trees_ml_object_slope",
output="trees_ml_object_filt_all",
type="area",
flags="sv",
flags="svc",
)
rm_vectors.append("trees_ml_object_filt_all")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,9 @@ def treetrunk(list_attr, treecrowns):
# can be used as an estimate of the trunk position.
grass.message(_("Calculating tree trunk position..."))
# Centroid as tree trunk position
col_sp_cent = "pos_rand" # change appropriately after r.to.vect is fixed
# Created with Vect_get_point_in_area which gets the point inside area and
# outside all islands (from the largest IN segment the midpoint is taken).
col_sp_cent = "pos_rand"
if f"{col_sp_cent}_x" in list_attr:
grass.warning(
_(
Expand Down

0 comments on commit e156127

Please sign in to comment.