def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' return _xattrs( self.classof(self.easting, self.northing, h=self.height, conic=self.conic), self, *attrs)
def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' return _xattrs( self.classof(self.zone, self.en100k, self.easting, self.northing, band=self.band, datum=self.datum), self, *attrs)
def unit(self, ll=None): '''Normalize this vector to unit length. @keyword ll: Optional, original latlon (C{LatLon}). @return: Normalized vector (L{Nvector}). ''' if self._united is None: u = Vector3d.unit(self, ll=ll) # .copy() self._united = u._united = _xattrs(u, self, '_h') return self._united
def _latlon5(self, LatLon): '''(INTERNAL) Convert cached LatLon ''' ll = self._latlon if LatLon is None: r = LatLonDatum5Tuple(ll.lat, ll.lon, ll.datum, ll.convergence, ll.scale) elif issubclassof(LatLon, _LLEB): r = _xattrs(LatLon(ll.lat, ll.lon, datum=ll.datum), ll, '_convergence', '_scale') else: raise TypeError('%s not ellipsoidal: %r' % ('LatLon', LatLon)) return _xnamed(r, ll.name)
def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' return _xattrs( self.classof( self.pole, self.easting, self.northing, # PYCHOK pole band=self.band, datum=self.datum, convergence=self.convergence, scale=self.scale), self, *attrs)
def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' return _xattrs(self.classof(self.x, self.y, self.z), self, '_length', '_united', *attrs) # _crosserrors
def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' c = Conic(None, 0, name=self._name) self._dup2(c) return _xattrs(c, self, *attrs)
def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' return _xattrs(self.classof(self.lat, self.lon), self, '_height', *attrs)
def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' return _xattrs(self._xcopy2(self.classof), self, *attrs)
def _xcopy(self, *attrs): '''(INTERNAL) Make copy with add'l, subclass attributes. ''' return _xattrs(self.classof(self.lat0, self.lon0, datum=self.datum), self, *attrs)