Exemplo n.º 1
0
 def validate(self):
     "Checks to see if the given spatial reference is valid."
     capi.srs_validate(self.ptr)
Exemplo n.º 2
0
"""
Exemplo n.º 3
0
 def validate(self):
     "Checks to see if the given spatial reference is valid."
     capi.srs_validate(self.ptr)
Exemplo n.º 4
0
    def to_esri(self):
<<<<<<< HEAD
        "Morphs this SpatialReference to ESRI's format."
        capi.morph_to_esri(self.ptr)

    def validate(self):
        "Checks to see if the given spatial reference is valid."
=======
        "Morph this SpatialReference to ESRI's format."
        capi.morph_to_esri(self.ptr)

    def validate(self):
        "Check to see if the given spatial reference is valid."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        capi.srs_validate(self.ptr)

    # #### Name & SRID properties ####
    @property
    def name(self):
<<<<<<< HEAD
        "Returns the name of this Spatial Reference."
=======
        "Return the name of this Spatial Reference."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        if self.projected:
            return self.attr_value('PROJCS')
        elif self.geographic:
            return self.attr_value('GEOGCS')
        elif self.local:
            return self.attr_value('LOCAL_CS')