예제 #1
0
파일: srs.py 프로젝트: JMassapina/lettuce
 def units(self):
     """
     Returns a 2-tuple of the units value and the units name, 
     and will automatically determines whether to return the linear
     or angular units.
     """
     if self.projected or self.local:
         return capi.linear_units(self.ptr, byref(c_char_p()))
     elif self.geographic:
         return capi.angular_units(self.ptr, byref(c_char_p()))
     else:
         return (None, None)
예제 #2
0
 def units(self):
     """
     Returns a 2-tuple of the units value and the units name, 
     and will automatically determines whether to return the linear
     or angular units.
     """
     if self.projected or self.local:
         return capi.linear_units(self.ptr, byref(c_char_p()))
     elif self.geographic:
         return capi.angular_units(self.ptr, byref(c_char_p()))
     else:
         return (None, None)
예제 #3
0
파일: srs.py 프로젝트: ahlan90/ginvix
 def units(self):
     """
     Return a 2-tuple of the units value and the units name. Automatically
     determine whether to return the linear or front units.
     """
     units, name = None, None
     if self.projected or self.local:
         units, name = capi.linear_units(self.ptr, byref(c_char_p()))
     elif self.geographic:
         units, name = capi.angular_units(self.ptr, byref(c_char_p()))
     if name is not None:
         name = force_text(name)
     return (units, name)
예제 #4
0
 def units(self):
     """
     Return a 2-tuple of the units value and the units name. Automatically
     determine whether to return the linear or angular units.
     """
     units, name = None, None
     if self.projected or self.local:
         units, name = capi.linear_units(self.ptr, byref(c_char_p()))
     elif self.geographic:
         units, name = capi.angular_units(self.ptr, byref(c_char_p()))
     if name is not None:
         name = force_text(name)
     return (units, name)
예제 #5
0
 def units(self):
     """
     Returns a 2-tuple of the units value and the units name,
     and will automatically determines whether to return the linear
     or angular units.
     """
     units, name = None, None
     if self.projected or self.local:
         units, name = capi.linear_units(self.ptr, byref(c_char_p()))
     elif self.geographic:
         units, name = capi.angular_units(self.ptr, byref(c_char_p()))
     if name is not None:
         name.decode()
     return (units, name)
예제 #6
0
    def units(self):
        """
<<<<<<< HEAD
        Returns a 2-tuple of the units value and the units name,
        and will automatically determines whether to return the linear
        or angular units.
=======
        Return a 2-tuple of the units value and the units name. Automatically
        determine whether to return the linear or angular units.
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        """
        units, name = None, None
        if self.projected or self.local:
            units, name = capi.linear_units(self.ptr, byref(c_char_p()))
        elif self.geographic:
            units, name = capi.angular_units(self.ptr, byref(c_char_p()))
        if name is not None:
            name = force_text(name)
        return (units, name)
예제 #7
0
파일: srs.py 프로젝트: JMassapina/lettuce
 def linear_units(self):
     "Returns the value of the linear units."
     units, name = capi.linear_units(self.ptr, byref(c_char_p()))
     return units
예제 #8
0
 def linear_units(self):
     "Returns the value of the linear units."
     units, name = capi.linear_units(self.ptr, byref(c_char_p()))
     return units
예제 #9
0
파일: srs.py 프로젝트: ahlan90/ginvix
 def linear_name(self):
     "Return the name of the linear units."
     units, name = capi.linear_units(self.ptr, byref(c_char_p()))
     return name
예제 #10
0
"""
예제 #11
0
 def linear_name(self):
     "Return the name of the linear units."
     units, name = capi.linear_units(self.ptr, byref(c_char_p()))
     return name
예제 #12
0
        "Return the SRID of top-level authority, or None if undefined."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        try:
            return int(self.attr_value('AUTHORITY', 1))
        except (TypeError, ValueError):
            return None

    # #### Unit Properties ####
    @property
    def linear_name(self):
<<<<<<< HEAD
        "Returns the name of the linear units."
=======
        "Return the name of the linear units."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        units, name = capi.linear_units(self.ptr, byref(c_char_p()))
        return name

    @property
    def linear_units(self):
<<<<<<< HEAD
        "Returns the value of the linear units."
=======
        "Return the value of the linear units."
>>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435
        units, name = capi.linear_units(self.ptr, byref(c_char_p()))
        return units

    @property
    def angular_name(self):
<<<<<<< HEAD