if ((tempPartNum + 1) < tempNumParts){
if (i == tempParts[tempPartNum+1]){
// create a point array from the points
PointM[] tempPointArray = new PointM[tempPointVect.size()];
tempPointVect.copyInto(tempPointArray);
// create a LineString from the points
LineStringM tempLineString = new LineStringM(tempPointArray);
// add the line string to the line vect