예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
 def distance(self, point1, point2):
     '''(INTERNAL) I{Must be overloaded}.
     '''
     notOverloaded(self, self.distance, point1, point2)  # PYCHOK no cover
예제 #4
0
 def _distances(self, x, y):  # PYCHOK unused (x, y) radians
     '''(INTERNAL) I{Must be overloaded}.
     '''
     notOverloaded(self, self._distances, x, y)
예제 #5
0
 def _ev(self, *args):  # PYCHOK no cover
     '''(INTERNAL) I{Must be overloaded}.
     '''
     notOverloaded(self, self._ev, *args)
예제 #6
0
 def __call__(self, *args):  # PYCHOK no cover
     '''(INTERNAL) I{Must be overloaded}.
     '''
     notOverloaded(self, '__call__', *args)
예제 #7
0
 def falsed2(self):  # PYCHOK no cover
     '''(INTERNAL) I{Must be overloaded}.
     '''
     notOverloaded(self, self.falsed2)
예제 #8
0
 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)
예제 #9
0
 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)
예제 #10
0
 def datum(self):  # PYCHOK no cover
     '''(INTERNAL) I{Must be overloaded}.
     '''
     notOverloaded(self, self.datum)