def attr_value(self, target, index=0): """ The attribute value for the given target node (e.g. 'PROJCS'). The index keyword specifies an index of the child node to return. """ if not isinstance(target, basestring) or not isinstance(index, int): raise TypeError return capi.get_attr_value(self.ptr, target, index)
def attr_value(self, target, index=0): """ The attribute value for the given target node (e.g. 'PROJCS'). The index keyword specifies an index of the child node to return. """ if not isinstance(target, str) or not isinstance(index, int): raise TypeError return capi.get_attr_value(self.ptr, force_bytes(target), index)
def attr_value(self, target, index=0): """ The attribute value for the given target node (e.g. 'PROJCS'). The index keyword specifies an index of the child node to return. """ if not isinstance(target, six.string_types) or not isinstance(index, int): raise TypeError value = capi.get_attr_value(self.ptr, force_bytes(target), index) return force_text(value, 'ascii', strings_only=True)
def attr_value(self, target, index=0): """ The attribute value for the given target node (e.g. 'PROJCS'). The index keyword specifies an index of the child node to return. """ if not isinstance(target, six.string_types) or not isinstance( index, int): raise TypeError value = capi.get_attr_value(self.ptr, force_bytes(target), index) return force_text(value, 'ascii', strings_only=True)
"""
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 return self.pretty_wkt # #### SpatialReference Methods #### def attr_value(self, target, index=0): """ The attribute value for the given target node (e.g. 'PROJCS'). The index keyword specifies an index of the child node to return. """ <<<<<<< HEAD if not isinstance(target, six.string_types) or not isinstance(index, int): ======= if not isinstance(target, str) or not isinstance(index, int): >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 raise TypeError return capi.get_attr_value(self.ptr, force_bytes(target), index) def auth_name(self, target): <<<<<<< HEAD "Returns the authority name for the given string target node." return capi.get_auth_name(self.ptr, force_bytes(target)) def auth_code(self, target): "Returns the authority code for the given string target node." return capi.get_auth_code(self.ptr, force_bytes(target)) def clone(self): "Returns a clone of this SpatialReference object." return SpatialReference(capi.clone_srs(self.ptr)) def from_esri(self):