perimeter function

Compute perimeter from polygons or other geometries