cf.DomainAncillary.interior_ring¶
-
DomainAncillary.
interior_ring
¶ Return the interior ring variable for polygon geometries.
f.interior_ring
is equivalent tof.get_interior_ring()
New in version (cfdm): 1.8.0
- Returns
InteriorRing
The interior ring variable.
Examples
>>> i = cf.InteriorRing(data=cf.Data(numpy.arange(10).reshape(5, 2))) >>> c.set_interior_ring(i) >>> c.has_interior_ring() True >>> i = c.interior_ring >>> i <CF InteriorRing: (5, 2) > >>> i.data <CF Data(5, 2): [[0, ..., 9]]> >>> i.data.shape (5, 2)