A closed geometry instance is a figure whose start points and end points are the same. Polygon instances are considered closed. Point instances are not closed.
A ring is a simple, closed LineString instance.
To determine if an instance is closed
STIsClosed
To determine if an instance is a ring
STIsRing
To return the exterior ring of a Polygon instance
STExteriorRing
To return the number of interior rings in a Polygon
STNumInteriorRing
To return a specified interior ring of a Polygon
STInteriorRingN