A helper routine for the OGR routines that generate geometries.
(self, gen_func, other=None)
| 533 | |
| 534 | # #### Geometry-generation Methods #### |
| 535 | def _geomgen(self, gen_func, other=None): |
| 536 | "A helper routine for the OGR routines that generate geometries." |
| 537 | if isinstance(other, OGRGeometry): |
| 538 | return OGRGeometry(gen_func(self.ptr, other.ptr), self.srs) |
| 539 | else: |
| 540 | return OGRGeometry(gen_func(self.ptr), self.srs) |
| 541 | |
| 542 | @property |
| 543 | def boundary(self): |
no test coverage detected