Return a 2-tuple of the units value and the units name. Automatically determine whether to return the linear or angular units.
(self)
| 240 | |
| 241 | @property |
| 242 | def units(self): |
| 243 | """ |
| 244 | Return a 2-tuple of the units value and the units name. Automatically |
| 245 | determine whether to return the linear or angular units. |
| 246 | """ |
| 247 | units, name = None, None |
| 248 | if self.projected or self.local: |
| 249 | units, name = capi.linear_units(self.ptr, byref(c_char_p())) |
| 250 | elif self.geographic: |
| 251 | units, name = capi.angular_units(self.ptr, byref(c_char_p())) |
| 252 | if name is not None: |
| 253 | name = force_str(name) |
| 254 | return (units, name) |
| 255 | |
| 256 | # #### Spheroid/Ellipsoid Properties #### |
| 257 | @property |
nothing calls this directly
no test coverage detected