Changes between Initial Version and Version 1 of Ticket #2903, comment 7


Ignore:
Timestamp:
Sep 14, 2018, 5:39:49 AM (6 years ago)
Author:
jradinger

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2903, comment 7

    initial v1  
    3939      cats="1-99999999")
    4040}}}
     41
     42A workaround would be to loop over the single coordinate pairs and break the line vector by each pair separately (however, this is comparably very slow):
     43{{{
     44for i in firestations_connectors_coors:
     45    grass.run_command("v.edit",
     46          tool="break",
     47          map="railroads_2",
     48          coords=i[0],
     49          threshold=50,
     50          layer=1,
     51          cats="1-99999999")
     52grass.run_command("v.category",
     53    input="railroads_2",
     54    option="add",
     55    output="railroads_2a",
     56    layer=2)
     57}}}