extract.vertices function

Extract vertices for polygons or lines