Example #1
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)
Example #2
0
 def angular_units(self):
     "Returns the value of the angular units."
     units, name = capi.angular_units(self.ptr, byref(c_char_p()))
     return units