[GRASS-dev] [GRASS GIS] #2185: Painfully Slow 'v.in.ogr' Vector Import

#2185: Painfully Slow 'v.in.ogr' Vector Import
-------------------------+------------------------------------------------
  Reporter: justinzane | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.6
Component: Vector | Version: svn-trunk
Resolution: | Keywords: import, OGR, performance, v.in.ogr
       CPU: x86-64 | Platform: Linux
-------------------------+------------------------------------------------

Comment (by hcho):

Yes, that's what I found too. Vect_line_intersection2 doesn't have this
issue, but it still creates a single point intersection at the first
vertex of the second new line (line ID 3) in the geojson example.

Line ID 1: original unbroken line

1st iteration
Line ID 2-4: new broken lines

2nd iteration
Line ID 5: identical to line 3
Line ID 6: start node of line 3

Lines 5 & 6 shouldn't be returned at all from the intersection routine, I
think. The patch fixes this.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2185#comment:37&gt;
GRASS GIS <https://grass.osgeo.org>