MCPcopy
hub / github.com/django/django / _geomgen

Method _geomgen

django/contrib/gis/gdal/geometries.py:535–540  ·  view source on GitHub ↗

A helper routine for the OGR routines that generate geometries.

(self, gen_func, other=None)

Source from the content-addressed store, hash-verified

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):

Callers 6

boundaryMethod · 0.95
convex_hullMethod · 0.95
differenceMethod · 0.95
intersectionMethod · 0.95
sym_differenceMethod · 0.95
unionMethod · 0.95

Calls 1

OGRGeometryClass · 0.85

Tested by

no test coverage detected