(project_point): Removed cast to int for projected point coordinates. (shape_centroid): Return last point if all polygon vertices fall to one point.