Creating Stands from Polylines