Return the centroid (a Point) of this Polygon.
(self)
| 582 | |
| 583 | @property |
| 584 | def centroid(self): |
| 585 | """Return the centroid (a Point) of this Polygon.""" |
| 586 | # The centroid is a Point, create a geometry for this. |
| 587 | p = OGRGeometry(OGRGeomType("Point")) |
| 588 | capi.get_centroid(self.ptr, p.ptr) |
| 589 | return p |
| 590 | |
| 591 | |
| 592 | # The subclasses for OGR Geometry. |
nothing calls this directly
no test coverage detected