MCPcopy
hub / github.com/django/django / _topology

Method _topology

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

A generalized function for topology operations, takes a GDAL function and the other geometry to perform the operation on.

(self, func, other)

Source from the content-addressed store, hash-verified

488
489 # #### Topology Methods ####
490 def _topology(self, func, other):
491 """A generalized function for topology operations, takes a GDAL
492 function and the other geometry to perform the operation on."""
493 if not isinstance(other, OGRGeometry):
494 raise TypeError(
495 "Must use another OGRGeometry object for topology operations!"
496 )
497
498 # Returning the output of the given function with the other geometry's
499 # pointer.
500 return func(self.ptr, other.ptr)
501
502 def intersects(self, other):
503 "Return True if this geometry intersects with the other."

Callers 8

intersectsMethod · 0.95
equalsMethod · 0.95
disjointMethod · 0.95
touchesMethod · 0.95
crossesMethod · 0.95
withinMethod · 0.95
containsMethod · 0.95
overlapsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected