MCPcopy
hub / github.com/django/django / attr_value

Method attr_value

django/contrib/gis/gdal/srs.py:151–158  ·  view source on GitHub ↗

The attribute value for the given target node (e.g. 'PROJCS'). The index keyword specifies an index of the child node to return.

(self, target, index=0)

Source from the content-addressed store, hash-verified

149
150 # #### SpatialReference Methods ####
151 def attr_value(self, target, index=0):
152 """
153 The attribute value for the given target node (e.g. 'PROJCS'). The
154 index keyword specifies an index of the child node to return.
155 """
156 if not isinstance(target, str) or not isinstance(index, int):
157 raise TypeError
158 return capi.get_attr_value(self.ptr, force_bytes(target), index)
159
160 def auth_name(self, target):
161 "Return the authority name for the given string target node."

Callers 2

__getitem__Method · 0.95
nameMethod · 0.95

Calls 1

force_bytesFunction · 0.90

Tested by

no test coverage detected