+ print("two consecutives points of shapefile To adjust are superposed, OK")
+ continue # do not take into account consecutive superposed points in shape to adjust
+ if i == len(sfta.points) -1:
+ d = math.sqrt((x00-p[0])*(x00-p[0]) + (y00-p[1])*(y00-p[1])) # distance between first and last point
+ if d < 1.e-5:
+ discountLastSftaPoint = 1
+ print("last point of shapefile To adjust is superposed to first point, last point discarded, OK")
+ continue # do not take into account last point if superposed to first point, in shape to adjust