예제 #1
0
파일: srs.py 프로젝트: JMassapina/lettuce
 def xml(self, dialect=""):
     "Returns the XML representation of this Spatial Reference."
     return capi.to_xml(self.ptr, byref(c_char_p()), dialect)
예제 #2
0
 def xml(self, dialect=''):
     "Returns the XML representation of this Spatial Reference."
     return capi.to_xml(self.ptr, byref(c_char_p()), dialect)
예제 #3
0
"""
예제 #4
0
 def xml(self, dialect=""):
     "Return the XML representation of this Spatial Reference."
     return capi.to_xml(self.ptr, byref(c_char_p()), force_bytes(dialect))
예제 #5
0
 def xml(self, dialect=''):
     "Return the XML representation of this Spatial Reference."
     return capi.to_xml(self.ptr, byref(c_char_p()), force_bytes(dialect))
예제 #6
0
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.to_proj(self.ptr, byref(c_char_p()))

    @property
    def proj4(self):
        "Alias for proj()."
        return self.proj

    @property
    def xml(self, dialect=''):
<<<<<<< HEAD
        "Returns the XML representation of this Spatial Reference."
=======
        "Return the XML representation of this Spatial Reference."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.to_xml(self.ptr, byref(c_char_p()), force_bytes(dialect))


class CoordTransform(GDALBase):
    "The coordinate system transformation object."
    destructor = capi.destroy_ct

    def __init__(self, source, target):
<<<<<<< HEAD
        "Initializes on a source and target SpatialReference objects."
=======
        "Initialize on a source and target SpatialReference objects."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        if not isinstance(source, SpatialReference) or not isinstance(target, SpatialReference):
            raise TypeError('source and target must be of type SpatialReference')
        self.ptr = capi.new_ct(source._ptr, target._ptr)