def __init__(self, easting, northing, band=NN, datum=None, falsed=True, convergence=None, scale=None): '''(INTERNAL) New L{UtmUpsBase}. ''' E = self._Error if not E: notOverloaded(self, '_Error') self._easting = Easting(easting, Error=E) self._northing = Northing(northing, Error=E) if band: _xinstanceof(str, band=band) self._band = band if datum not in (None, self._datum): self._datum = _ellipsoidal_datum(datum) # XXX name=band if not falsed: self._falsed = False if convergence is not self._convergence: self._convergence = Scalar(convergence, name=_convergence_, Error=E) if scale is not self._scale: self._scale = Scalar(scale, name=_scale_, Error=E)
def __init__(self, easting, northing, band='', datum=None, falsed=True, convergence=None, scale=None): '''(INTERNAL) New L{UtmUpsBase}. ''' E = self._Error if not E: notOverloaded(self, '_Error') self._easting = Easting(easting, Error=E) self._northing = Northing(northing, Error=E) if band: _xinstanceof(str, band=band) self._band = band if datum: _xinstanceof(Datum, datum=datum) if datum != self._datum: self._datum = datum if not falsed: self._falsed = False if convergence is not self._convergence: self._convergence = Scalar(convergence, name='convergence', Error=E) if scale is not self._scale: self._scale = Scalar(scale, name='scale', Error=E)
def distance(self, point1, point2): '''(INTERNAL) I{Must be overloaded}. ''' notOverloaded(self, self.distance, point1, point2) # PYCHOK no cover
def _distances(self, x, y): # PYCHOK unused (x, y) radians '''(INTERNAL) I{Must be overloaded}. ''' notOverloaded(self, self._distances, x, y)
def _ev(self, *args): # PYCHOK no cover '''(INTERNAL) I{Must be overloaded}. ''' notOverloaded(self, self._ev, *args)
def __call__(self, *args): # PYCHOK no cover '''(INTERNAL) I{Must be overloaded}. ''' notOverloaded(self, '__call__', *args)
def falsed2(self): # PYCHOK no cover '''(INTERNAL) I{Must be overloaded}. ''' notOverloaded(self, self.falsed2)
def reverse(self, xyz, y=None, z=None, M=False): # PYCHOK no cover '''(INTERNAL) I{must be overloaded}. ''' notOverloaded(self, self.reverse, xyz, y=y, z=z, M=M)
def forward(self, latlonh, lon=None, height=0, M=False): # PYCHOK no cover '''(INTERNAL) I{must be overloaded}. ''' notOverloaded(self, self.forward, latlonh, lon=lon, height=height, M=M)
def datum(self): # PYCHOK no cover '''(INTERNAL) I{Must be overloaded}. ''' notOverloaded(self, self.datum)