Question about thinning process in v.voronoi #2623
Unanswered
g-marques-git
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi, here is a rough code for calling v.voronoi from Python code: import grass.script as gs
import grass.script.setup # for <=8.2
# Assuming we have created /some/path/nc_spm_08/PERMANENT and imported or linked the data.
with gs.setup.init("/some/path/nc_spm_08/PERMANENT"):
gs.run_command("v.voronoi", input="urbanarea", output="urbanarea_skeleton", flags="s", thin=2000) If that does not work for you, can please give us more information on what you are doing? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm trying to implement the thinning process of v.voronoi for skeleton in another tool (python).
The thinning process take place in skeleton.c : https://github.com/OSGeo/grass/blob/releasebranch_7_8/vector/v.voronoi/skeleton.c from the line 273.
My understanding is it is only based on length of lines and multiple call to v.clean: rmdangle algorithm with incrementing threshold should do the same (as stated in v.clean documentation). But in the source code there is a morphof parameter that i have trouble understanding. Could someone enlighten me about his use please ?
Regards
Beta Was this translation helpful? Give feedback.
All reactions