MCPcopy
hub / github.com/django/django / geometry_field

Method geometry_field

django/contrib/gis/utils/layermapping.py:539–547  ·  view source on GitHub ↗

Return the GeometryField instance associated with the geographic column.

(self)

Source from the content-addressed store, hash-verified

537 ) from exc
538
539 def geometry_field(self):
540 """
541 Return the GeometryField instance associated with the geographic
542 column.
543 """
544 # Use `get_field()` on the model's options so that we
545 # get the correct field instance if there's model inheritance.
546 opts = self.model._meta
547 return opts.get_field(self.geom_field)
548
549 def make_multi(self, geom_type, model_field):
550 """

Callers 1

__init__Method · 0.95

Calls 1

get_fieldMethod · 0.45

Tested by

no test coverage detected