Modified PolyLine to use first coordinate as base point