예제 #1
0
파일: srs.py 프로젝트: JMassapina/lettuce
 def auth_name(self, target):
     "Returns the authority name for the given string target node."
     return capi.get_auth_name(self.ptr, target)
예제 #2
0
"""
예제 #3
0
 def auth_name(self, target):
     "Returns the authority name for the given string target node."
     return capi.get_auth_name(self.ptr, force_bytes(target))
예제 #4
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):
        "Morphs this SpatialReference from ESRI's format to EPSG."
=======
        "Return the authority name for the given string target node."
        return capi.get_auth_name(self.ptr, force_bytes(target))