I am reading a shapefile for a pipeline and what I've noticed is that if I just draw a line from one point to the next (in the order I read them), there will be points where the line terminates, and the next point is really a new line - but I can't see any way to tell where those points are... How does that work?
A bit late but what the heck :P
If a row contains multiple new/disconnected lines as you suggested you can find the index positions where "the next point is really a new line" by calling the
shape.parts attribute. Note that if there is only one line then the indexlist from shape.parts will still list the first point, ie
Check out the Pyshp docs for more on how to use it: http://code.google.com/p/pyshp/wiki/PyShpDocs