How can we measure the perimeter of a closed geometry or the length of an open geometry?

@Maroslav4