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

Change tree trunk position to be created by 'r.to.vect -c' #86

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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