def addValueToPoints(valuestring, points):
    """Adds the collected character string to the last coordinate
    in the points list."""
    if not valuestring:
        return
    value = float(valuestring)
    if not points or len(points[-1]) == 2:
        points.append([])
    points[-1].append(value)
