예제 #1
0
파일: srs.py 프로젝트: JMassapina/lettuce
 def import_xml(self, xml):
     "Imports the Spatial Reference from an XML string."
     capi.from_xml(self.ptr, xml)
예제 #2
0
"""
예제 #3
0
 def import_xml(self, xml):
     "Imports the Spatial Reference from an XML string."
     capi.from_xml(self.ptr, xml)
예제 #4
0
    def import_proj(self, proj):
        "Import the Spatial Reference from a PROJ.4 string."
        capi.from_proj(self.ptr, proj)

    def import_user_input(self, user_input):
        "Import the Spatial Reference from the given user input string."
        capi.from_user_input(self.ptr, force_bytes(user_input))

    def import_wkt(self, wkt):
        "Import the Spatial Reference from OGC WKT (string)"
        capi.from_wkt(self.ptr, byref(c_char_p(force_bytes(wkt))))

    def import_xml(self, xml):
        "Import the Spatial Reference from an XML string."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        capi.from_xml(self.ptr, xml)

    # #### Export Properties ####
    @property
    def wkt(self):
<<<<<<< HEAD
        "Returns the WKT representation of this Spatial Reference."
=======
        "Return the WKT representation of this Spatial Reference."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        return capi.to_wkt(self.ptr, byref(c_char_p()))

    @property
    def pretty_wkt(self, simplify=0):
<<<<<<< HEAD
        "Returns the 'pretty' representation of the WKT."