コード例 #1
0
ファイル: srs.py プロジェクト: JMassapina/lettuce
 def import_epsg(self, epsg):
     "Imports the Spatial Reference from the EPSG code (an integer)."
     capi.from_epsg(self.ptr, epsg)
コード例 #2
0
ファイル: srs.py プロジェクト: letouriste001/SmartForest_2.0
"""
コード例 #3
0
 def import_epsg(self, epsg):
     "Imports the Spatial Reference from the EPSG code (an integer)."
     capi.from_epsg(self.ptr, epsg)
コード例 #4
0
    def projected(self):
        """
<<<<<<< HEAD
        Returns True if this SpatialReference is a projected coordinate system
=======
        Return True if this SpatialReference is a projected coordinate system
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
         (root node is PROJCS).
        """
        return bool(capi.isprojected(self.ptr))

    # #### Import Routines #####
    def import_epsg(self, epsg):
<<<<<<< HEAD
        "Imports the Spatial Reference from the EPSG code (an integer)."
        capi.from_epsg(self.ptr, epsg)

    def import_proj(self, proj):
        "Imports the Spatial Reference from a PROJ.4 string."
        capi.from_proj(self.ptr, proj)

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

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

    def import_xml(self, xml):
        "Imports the Spatial Reference from an XML string."