afimb / gtfslib-python

An open source library in python for reading GTFS files and computing various stats and indicators about Public Transport networks
GNU General Public License v3.0
44 stars 6 forks source link

Out of order shape points provoke unique constraint failure #36

Closed laurentg closed 8 years ago

laurentg commented 8 years ago

The shape import does not commit to database, so the shape point list for a shape is not ordered on shape point. The re-numbering of pt_seq thus cause a constraint failure because of the wrong ordering of re-numbering.