Exemple #1
0
    public void InitMapFromSceneSel(string regsel, int nothing)
    {
        mapcoord = new MapCoordblock(this);
        switch (regsel)
        {
        default:
        case "MsftRedwest":
        case "MsftCoreCampus":
        case "MsftB19focused":
            mapcoord.AddRowLatLng(47.640490, -122.133797, -149.1, 0.2);
            mapcoord.AddRowLatLng(47.639079, -122.134960, 28.0, -31.4);
            mapcoord.AddRowLatLng(47.638526, -122.134519, 75.4, 19.9);
            mapcoord.AddRowLatLng(47.639368, -122.133926, -29.4, 30.8);
            mapcoord.AddRowLatLng(47.641066, -122.136018, -155.44, -177.96);
            break;

        case "Eb12":

            mapcoord.AddRowLatLng(49.993313, 8.678353, 0, 0);              // eb12 origin streetlamp
            mapcoord.AddRowLatLng(49.993472, 8.677981, 18.45, 27.90);      // eb12-12 doorway
            mapcoord.AddRowLatLng(49.995560, 8.676101, 260.80, 167.7);     // SW corner of Rewe
            mapcoord.AddRowLatLng(49.995788, 8.676752, 287.25, 118.35);    //SE corner of Rewe

            break;

        case "MsftDublin":
            //mapcoord.AddRowLngLat(53.268998, -6.196680, 0, 0);
            mapcoord.AddRowLatLng(53.268396, -6.195296, -103.5, 75.2);
            mapcoord.AddRowLatLng(53.269369, -6.196511, -12.4, -47.8);
            mapcoord.AddRowLatLng(53.269212, -6.194816, -139.0, -27.5);
            break;
        }
        glbllm      = this;
        maps.latmap = mapcoord.DoRegression("lat = x + z");
        maps.lngmap = mapcoord.DoRegression("lng = x + z");
        maps.xmap   = mapcoord.DoRegression("x = lng + lat");// backwards, should do something about it someday
        maps.zmap   = mapcoord.DoRegression("z = lng + lat");
    }
Exemple #2
0
    public void InitMapCoords(string dataSetName)
    {
        mapcoord = new MapCoordblock(this);
        switch (dataSetName)
        {
        case "Bld43":
            mapcoord.AddRowLatLng(47.640490, -122.133797, -149.1, 0.2);
            mapcoord.AddRowLatLng(47.639079, -122.134960, 28.0, -31.4);
            mapcoord.AddRowLatLng(47.638526, -122.134519, 75.4, 19.9);
            mapcoord.AddRowLatLng(47.639368, -122.133926, -29.4, 30.8);
            mapcoord.AddRowLatLng(47.641066, -122.136018, -155.44, -177.96);
            break;

        case "BldRWB":
            double xadj = 10.5;
            double zadj = 3.0;
            mapcoord.AddRowLatLng(47.660078, -122.140175, 72.70 + xadj, 4.77 + zadj);    // upper left
            mapcoord.AddRowLatLng(47.659377, -122.140189, -5.35 + xadj, 4.77 + zadj);    // lower left
            mapcoord.AddRowLatLng(47.660150, -122.139328, 81.23 + xadj, -59.70 + zadj);  // upper right
            mapcoord.AddRowLatLng(47.659457, -122.139339, 3.18 + xadj, -59.70 + zadj);   // lower right
            break;

        case "test":
            mapcoord.AddRowLatLng(1, 1, 40, 25);
            mapcoord.AddRowLatLng(2, 2, 45, 20);
            mapcoord.AddRowLatLng(1, 1, 38, 30);
            mapcoord.AddRowLatLng(3, 3, 50, 30);
            mapcoord.AddRowLatLng(2, 2, 48, 28);

            mapcoord.AddRowLatLng(3, 3, 55, 30);
            mapcoord.AddRowLatLng(3, 3, 53, 34);
            mapcoord.AddRowLatLng(4, 4, 55, 36);
            mapcoord.AddRowLatLng(4, 4, 58, 32);
            mapcoord.AddRowLatLng(3, 3, 40, 34);

            mapcoord.AddRowLatLng(5, 5, 55, 38);
            mapcoord.AddRowLatLng(3, 3, 48, 28);
            mapcoord.AddRowLatLng(3, 3, 45, 30);
            mapcoord.AddRowLatLng(2, 2, 55, 36);
            mapcoord.AddRowLatLng(4, 4, 60, 34);

            mapcoord.AddRowLatLng(5, 5, 60, 38);
            mapcoord.AddRowLatLng(5, 5, 60, 42);
            mapcoord.AddRowLatLng(5, 5, 65, 38);
            mapcoord.AddRowLatLng(4, 4, 50, 34);
            mapcoord.AddRowLatLng(3, 3, 58, 38);
            break;

        default:
            return;
        }
        //sman = Object.FindO            SphInfo.DoInfoSphere(ranpoints, name, pos, ska, clrs[istat]);nativebjectOfType<SceneMan>();
        //glbllm = sman.GetComponent<LatLongMap>();
        maps.latmap = mapcoord.DoRegression("lat = x + z");
        maps.lngmap = mapcoord.DoRegression("lng = x + z");
        maps.xmap   = mapcoord.DoRegression("x = lng + lat");
        maps.zmap   = mapcoord.DoRegression("z = lng + lat");
    }