<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,</div><div dir="ltr"><br><div>I presumably detected an problem/bug with v.edit and its tool "break". I wanted to break a line at multiple coordinates. But the result is an overlay of multiple lines instead of the original line that is broken into segments. Here a small reproducible example using the NC dataset:</div><div><br></div><div><pre class="gmail-wiki" style="background:rgb(247,247,247);border:1px solid rgb(215,215,215);border-radius:0.3em;margin:1em 1.75em;padding:0.25em;overflow:auto;clear:right;color:rgb(0,0,0);font-size:13px">from grass.script import core as grass

# Copy data from PERMANENT mapset
grass.run_command("g.copy",
    overwrite=True,
    vector="railroads@PERMANENT,railroads")
grass.run_command("v.extract",
    overwrite=True,
    input="firestations@PERMANENT",
    cat="58,66,29,35,31,32",
    output="firestations")

# Connectors to find exact <span class="gmail-searchword1" style="background:rgb(204,255,204)">break</span> points coords
grass.run_command("v.distance",
    overwrite=True,
    to="railroads",
    from_="firestations",
    output="firestations_connectors")
firestations_connectors_coors = grass.read_command("v.to.db",
    flags="p",
    map="firestations_connectors",
    option="end",
    separator="comma").splitlines()
firestations_connectors_coors = [[",".join(x.split(",")[1:3])] for x in firestations_connectors_coors[1:]]

# <span class="gmail-searchword1" style="background:rgb(204,255,204)">Break</span> at point coords
grass.run_command("<span class="gmail-searchword0" style="background:rgb(255,255,153)">v.edit</span>",
      tool="break",
      map="railroads",
      coords=firestations_connectors_coors,
      threshold=50,
      layer=1,
      cats="1-99999999")</pre></div><div><br></div><div>My system:</div><div><div>GRASS version: 7.4.1                                                            </div><div>GRASS SVN revision: r72807M                                                     </div><div>Build date: 2018-06-13                                                          </div><div>Build platform: x86_64-apple-darwin17.6.0                                       </div><div>GDAL: 2.0.0                                                                     </div><div>PROJ.4: 5.1.0                                                                   </div><div>GEOS: 3.6.2                                                                     </div><div>SQLite: 3.19.3                                                                  </div><div>Python: 2.7.15                                                                  </div><div>wxPython: 4.0.0                                                                 </div><div>Platform: Darwin-17.7.0-x86_64-i386-64bit   </div></div><div><br></div><div>I seems that this issue has already been detected long time ago (see <a href="https://trac.osgeo.org/grass/ticket/2903">https://trac.osgeo.org/grass/ticket/2903</a>). I extended the bug ticket with my experience and details using the new GRASS versions. Interestingly, all people that reported about this problem were working on MacOS?!</div><div><br></div><div>Can anybody else reproduce this problem? Or does someone know a solution?</div><div><br></div><div>Cheers,</div><div>Johannes</div><div><br></div></div></div></div>