Added function that converts lists of points to linestrings and
polygons.