def getgeo(self, x, y, z):
        # shift (x,y,z) over to reference point (x,y,z)
        x = x - self.refxyz[0]
        y = -(y - self.refxyz[1])
        if z is None:
            z = self.refxyz[2]
        else:
            z = z - self.refxyz[2]
        # use UTM coordinates since unit is meters
        zone = self.refutm[0]
        if zone == "":
            raise ValueError, "reference point not configured"
        e = self.refutm[1] + self.px2m(x)
        n = self.refutm[2] + self.px2m(y)
        alt = self.refutm[3] + self.px2m(z)
        (e, n, zone) = self.getutmzoneshift(e, n)
        try:
            lat, lon = utm.to_latlon(e, n, zone[0], zone[1])
        except utm.OutOfRangeError:
            self.info("UTM out of range error for e=%s n=%s zone=%s" \
                      "xyz=(%s,%s,%s)" % (e, n, zone, x, y, z))
            (lat, lon) = self.refgeo[:2]
        #self.info("getgeo(%s,%s,%s) e=%s n=%s zone=%s  lat,lon,alt=" \
        #          "%.3f,%.3f,%.3f" % (x, y, z, e, n, zone, lat, lon, alt))
        return (lat, lon, alt)
Folder for Static Pages view
dataset/ETHPy150Open coreemu/core/daemon/core/location.py/CoreLocation.getgeo--crossover with--dataset/ETHPy150Open treeio/treeio/treeio/core/administration/views.py/pagefolder_view