亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mgrspoint.java

?? openmap java寫(xiě)的開(kāi)源數(shù)字地圖程序. 用applet實(shí)現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
        if (colInt == I || (colOrigin < I && colInt > I)                || ((colInt > I || colOrigin < I) && rollover)) {            colInt++;            if (DEBUG)                System.out.println("skipping I in col, new value: "                        + (char) colInt);        }        if (colInt == O || (colOrigin < O && colInt > O)                || ((colInt > O || colOrigin < O) && rollover)) {            colInt++;            if (DEBUG)                System.out.println("skipping O in col, new value: "                        + (char) colInt);            if (colInt == I) {                colInt++;                if (DEBUG)                    System.out.println("  hit I, new value: " + (char) colInt);            }        }        if (colInt > Z) {            colInt = colInt - Z + A - 1;            if (DEBUG)                System.out.println("rolling(2) col, new value: "                        + (char) rowInt);        }        if (rowInt > V) {            rowInt = rowInt - V + A - 1;            rollover = true;            if (DEBUG)                System.out.println("rolling over row, new value: "                        + (char) rowInt);        } else {            rollover = false;        }        if (rowInt == I || (rowOrigin < I && rowInt > I)                || ((rowInt > I || rowOrigin < I) && rollover)) {            rowInt++;            if (DEBUG)                System.out.println("skipping I in row, new value: "                        + (char) rowInt);        }        if (rowInt == O || (rowOrigin < O && rowInt > O)                || ((rowInt > O || rowOrigin < O) && rollover)) {            rowInt++;            if (DEBUG)                System.out.println("skipping O in row, new value: "                        + (char) rowInt);            if (rowInt == I) {                rowInt++;                if (DEBUG)                    System.out.println("  hit I, new value: " + (char) rowInt);            }        }        if (rowInt > V) {            rowInt = rowInt - V + A - 1;            if (DEBUG)                System.out.println("rolling(2) row, new value: "                        + (char) rowInt);        }        String twoLetter = (char) colInt + "" + (char) rowInt;        if (DEBUG) {            System.out.println("ending at = " + twoLetter);        }        return twoLetter;    }    /**     * Testing method, used to print out the MGRS 100k two letter set     * tables.     */    protected void print100kSets() {        StringBuffer sb = null;        for (int set = 1; set <= 6; set++) {            System.out.println("-------------\nFor 100K Set " + set                    + ":\n-------------\n");            for (int i = 19; i >= 0; i -= 1) {                sb = new StringBuffer((i * 100000) + "\t| ");                for (int j = 1; j <= 8; j++) {                    sb.append(" " + get100kID(j, i, set));                }                sb.append(" |");                System.out.println(sb);            }        }    }    /**     * The function getMinNorthing returns the minimum northing value     * of a MGRS zone.     *      * portted from Geotrans' c Lattitude_Band_Value strucure table.     * zoneLetter : MGRS zone (input)     */    protected float getMinNorthing(char zoneLetter)            throws NumberFormatException {        float northing;        switch (zoneLetter) {        case 'C':            northing = 1100000.0f;            break;        case 'D':            northing = 2000000.0f;            break;        case 'E':            northing = 2800000.0f;            break;        case 'F':            northing = 3700000.0f;            break;        case 'G':            northing = 4600000.0f;            break;        case 'H':            northing = 5500000.0f;            break;        case 'J':            northing = 6400000.0f;            break;        case 'K':            northing = 7300000.0f;            break;        case 'L':            northing = 8200000.0f;            break;        case 'M':            northing = 9100000.0f;            break;        case 'N':            northing = 0.0f;            break;        case 'P':            northing = 800000.0f;            break;        case 'Q':            northing = 1700000.0f;            break;        case 'R':            northing = 2600000.0f;            break;        case 'S':            northing = 3500000.0f;            break;        case 'T':            northing = 4400000.0f;            break;        case 'U':            northing = 5300000.0f;            break;        case 'V':            northing = 6200000.0f;            break;        case 'W':            northing = 7000000.0f;            break;        case 'X':            northing = 7900000.0f;            break;        default:            northing = -1.0f;        }        if (northing >= 0.0) {            return northing;        } else {            throw new NumberFormatException("Invalid zone letter: "                    + zone_letter);        }    }    private static void runTests(String fName, String inType) {        LineNumberReader lnr = null;        PrintStream pos = null;        String record = null;        StringBuffer outStr1 = new StringBuffer();        StringBuffer outStr2 = new StringBuffer();        try {            /*             * File inFile = new File(fName + ".dat"); File outFile =             * new File(fName + ".out"); FileInputStream fis = new             * FileInputStream(inFile); FileOutputStream fos = new             * FileOutputStream(outFile); BufferedInputStream bis =             * new BufferedInputStream(fis);             */            pos = new PrintStream(new FileOutputStream(new File(fName + ".out")));            lnr = new LineNumberReader(new InputStreamReader(new BufferedInputStream(new FileInputStream(new File(fName)))));            if (inType.equalsIgnoreCase("MGRS")) {                outStr1.append("MGRS to LatLonPoint\n\tMGRS\t\tLatitude   Longitude\n");                outStr2.append("MGRS to UTM\n\tMGRS\t\tZone Easting Northing\n");            } else if (inType.equalsIgnoreCase("UTM")) {                outStr1.append("UTM to LatLonPoint\n\tUTM\t\tLatitude   Longitude\n");                outStr2.append("UTM to MGRS\n\tUTM\t\tMGRS\n");            } else if (inType.equalsIgnoreCase("LatLon")) {                outStr1.append("LatLonPoint to UTM\nLatitude   Longitude\t\tZone Easting Northing     \n");                outStr2.append("LatLonPoint to MGRS\nLatitude   Longitude\t\tMGRS\n");            }            while ((record = lnr.readLine()) != null) {                if (inType.equalsIgnoreCase("MGRS")) {                    try {                        MGRSPoint mgrsp = new MGRSPoint(record);                        record.trim();                        mgrsp.decode(record);                        outStr1.append(record + " is " + mgrsp.toLatLonPoint()                                + "\n");                        outStr2.append(record + " to UTM: " + mgrsp.zone_number                                + " " + mgrsp.easting + " " + mgrsp.northing                                + "\n");                    } catch (NumberFormatException nfe) {                        Debug.error(nfe.getMessage());                    }                } else if (inType.equalsIgnoreCase("UTM")) {                    MGRSPoint mgrsp;                    UTMPoint utmp;                    float e, n;                    int z;                    char zl;                    String tmp;                    record.trim();                    tmp = record.substring(0, 2);                    z = Integer.parseInt(tmp);                    tmp = record.substring(5, 11);                    e = Float.parseFloat(tmp);                    tmp = record.substring(12, 19);                    n = Float.parseFloat(tmp);                    zl = record.charAt(3);                    utmp = new UTMPoint(n, e, z, zl);                    LatLonPoint llp = utmp.toLatLonPoint();                    mgrsp = LLtoMGRS(llp);                    outStr1.append(record + " is " + llp + " back to "                            + LLtoUTM(llp) + "\n");                    outStr2.append(record + " is " + mgrsp + "\n");                } else if (inType.equalsIgnoreCase("LatLon")) {                    float lat, lon;                    int index;                    String tmp;                    record.trim();                    index = record.indexOf("\040");                    if (index < 0) {                        index = record.indexOf("\011");                    }                    tmp = record.substring(0, index);                    lat = Float.parseFloat(tmp);                    tmp = record.substring(index);                    lon = Float.parseFloat(tmp);                    LatLonPoint llp = new LatLonPoint(lat, lon);                    // UTMPoint utmp = LLtoUTM(llp);                    MGRSPoint mgrsp = LLtoMGRS(llp);                    outStr1.append(record + " to UTM: " + mgrsp.zone_number                            + " " + mgrsp.easting + " " + mgrsp.northing + "\n");                    outStr2.append(record + "    ->    " + mgrsp.mgrs + "\n");                }            }        } catch (IOException e) {            // catch io errors from FileInputStream or readLine()            System.out.println("IO error: " + e.getMessage());        } finally {            if (pos != null) {                pos.print(outStr1.toString());                pos.print("\n");                pos.print(outStr2.toString());                pos.close();            }            // if the file opened okay, make sure we close it            if (lnr != null) {                try {                    lnr.close();                } catch (IOException ioe) {                }            }        }    }    public static void main(String[] argv) {        Debug.init();        ArgParser ap = new ArgParser("MGRSPoint");        ap.add("mgrs", "Print Latitude and Longitude for MGRS value", 1);        ap.add("latlon",                "Print MGRS for Latitude and Longitude values",                2,                true);        ap.add("sets", "Print the MGRS 100k table");        ap.add("altsets", "Print the MGRS 100k table for the Bessel ellipsoid");        ap.add("rtc",                "Run test case, with filename and input data type [MGRS | UTM | LatLon]",                2);        if (!ap.parse(argv)) {            ap.printUsage();            System.exit(0);        }        String arg[];        arg = ap.getArgValues("sets");        if (arg != null) {            new MGRSPoint().print100kSets();        }        arg = ap.getArgValues("altsets");        if (arg != null) {            MGRSPoint mgrsp = new MGRSPoint();            mgrsp.setOriginColumnLetters(BESSEL_SET_ORIGIN_COLUMN_LETTERS);            mgrsp.setOriginRowLetters(BESSEL_SET_ORIGIN_ROW_LETTERS);            mgrsp.print100kSets();        }        arg = ap.getArgValues("mgrs");        if (arg != null) {            try {                MGRSPoint mgrsp = new MGRSPoint(arg[0]);                Debug.output(arg[0] + " is " + mgrsp.toLatLonPoint());            } catch (NumberFormatException nfe) {                Debug.error(nfe.getMessage());            }        }        arg = ap.getArgValues("latlon");        if (arg != null) {            try {                float lat = Float.parseFloat(arg[0]);                float lon = Float.parseFloat(arg[1]);                LatLonPoint llp = new LatLonPoint(lat, lon);                MGRSPoint mgrsp = LLtoMGRS(llp);                UTMPoint utmp = LLtoUTM(llp);                if (utmp.zone_letter == 'Z') {                    Debug.output(llp + "to UTM: latitude limit exceeded.");                } else {                    Debug.output(llp + " is " + utmp);                }                Debug.output(llp + " is " + mgrsp);            } catch (NumberFormatException nfe) {                Debug.error("The numbers provided:  " + argv[0] + ", "                        + argv[1] + " aren't valid");            }        }        arg = ap.getArgValues("rtc");        if (arg != null) {            runTests(arg[0], arg[1]);        }    }}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久9999亚洲精品| 国产精品私人影院| 成人激情综合网站| 天天操天天色综合| 欧美国产成人在线| 日韩精品综合一本久道在线视频| 成人综合婷婷国产精品久久蜜臀 | 欧美性大战久久久久久久| 日本不卡在线视频| 亚洲日本一区二区三区| 久久精品人人做人人综合| 欧美日韩国产电影| 色哟哟精品一区| 成人午夜激情影院| 黑人巨大精品欧美黑白配亚洲| 亚洲国产欧美另类丝袜| 亚洲人精品一区| 国产精品理伦片| 国产欧美视频在线观看| 精品粉嫩超白一线天av| 欧美人xxxx| 欧美日韩免费一区二区三区视频| 91视频xxxx| 成人开心网精品视频| 国产一区二区三区免费在线观看| 五月综合激情网| 一区二区三区精品在线| 亚洲欧美色综合| 亚洲天堂成人网| 亚洲欧美影音先锋| 亚洲欧洲国产日韩| 国产精品女人毛片| 国产精品美女久久久久久久| 国产婷婷精品av在线| 久久九九久精品国产免费直播| 日韩精品在线一区| 精品少妇一区二区三区在线播放 | 欧美一区二区三区白人| 欧美日韩在线观看一区二区| 在线免费观看一区| 欧美影视一区二区三区| 欧美日韩免费高清一区色橹橹 | 在线观看av一区二区| 91福利精品视频| 欧洲另类一二三四区| 欧美视频三区在线播放| 8v天堂国产在线一区二区| 91精品国产色综合久久| 日韩美女一区二区三区四区| 精品国产麻豆免费人成网站| 久久色视频免费观看| 中文字幕av资源一区| 中文字幕在线不卡视频| 亚洲黄色av一区| 亚洲成a人片在线不卡一二三区| 三级亚洲高清视频| 精品午夜久久福利影院| 国产成人亚洲精品青草天美| 99国产精品久久久久久久久久久| 色婷婷亚洲一区二区三区| 精品视频1区2区| 日韩一二三区视频| 中文字幕欧美区| 悠悠色在线精品| 日韩av不卡在线观看| 久久成人羞羞网站| 从欧美一区二区三区| 欧美午夜精品一区二区三区 | 国产精品国产a| 夜夜嗨av一区二区三区中文字幕 | 欧美无砖专区一中文字| 日韩三级精品电影久久久| 国产欧美日韩视频在线观看| 亚洲乱码国产乱码精品精可以看| 偷偷要91色婷婷| 国产一区二区三区电影在线观看| 99免费精品视频| 欧美日韩不卡一区二区| 欧美国产精品劲爆| 午夜私人影院久久久久| 成人综合在线网站| 欧美肥胖老妇做爰| 国产精品区一区二区三| 琪琪一区二区三区| 91小宝寻花一区二区三区| 欧美一级在线观看| 国产精品久久久久9999吃药| 视频一区二区三区中文字幕| 成人v精品蜜桃久久一区| 91精品国产高清一区二区三区| 日本一区二区免费在线观看视频| 一区二区成人在线视频| 国产精品综合av一区二区国产馆| 91精彩视频在线观看| 2019国产精品| 日本大胆欧美人术艺术动态| 91麻豆.com| 国产欧美一区二区精品久导航| 午夜私人影院久久久久| 成人福利电影精品一区二区在线观看 | 亚洲资源中文字幕| 国产 日韩 欧美大片| 91精品国产综合久久久久久| 国产精品电影一区二区| 久久精品99国产精品| 欧美亚州韩日在线看免费版国语版| 国产性做久久久久久| 日韩电影一二三区| 欧美亚洲日本一区| 日韩毛片高清在线播放| 国产精品系列在线播放| 日韩一二三区不卡| 日日夜夜精品视频天天综合网| 97se亚洲国产综合自在线不卡 | 91在线视频官网| 亚洲国产高清aⅴ视频| 国产综合色视频| 欧美一区二区高清| 亚洲国产成人高清精品| 色久优优欧美色久优优| 亚洲视频图片小说| 成人午夜激情视频| 中文字幕成人av| 成人中文字幕电影| 国产色婷婷亚洲99精品小说| 韩国av一区二区三区在线观看| 欧美一级黄色录像| 免费观看日韩av| 欧美一级一级性生活免费录像| 亚洲午夜免费电影| 欧美日韩国产片| 午夜精品成人在线视频| 欧美肥大bbwbbw高潮| 午夜a成v人精品| 欧美一级一区二区| 激情六月婷婷久久| 国产无遮挡一区二区三区毛片日本| 国产剧情一区二区| 欧美国产日产图区| av一区二区三区黑人| 亚洲视频1区2区| 91欧美激情一区二区三区成人| 日韩一区有码在线| 在线中文字幕一区二区| 亚洲一级电影视频| 欧美一区二区三区免费视频| 久久激情五月婷婷| 国产视频一区不卡| 99精品在线观看视频| 亚洲最大成人综合| 欧美日韩免费在线视频| 日本视频一区二区三区| 久久久久久免费| 成人av在线影院| 一区二区三区久久久| 欧美一区二区三区视频在线观看| 久久精品国产99国产| 日本一区二区三区电影| 91九色02白丝porn| 日本vs亚洲vs韩国一区三区二区 | 亚洲精品一线二线三线| 成人黄色小视频在线观看| 亚洲精品v日韩精品| 91精品婷婷国产综合久久| 国产一区二区三区香蕉| 亚洲欧美综合色| 欧美日韩免费电影| 国产麻豆9l精品三级站| 亚洲色图一区二区三区| 欧美一二三四区在线| 福利91精品一区二区三区| 亚洲另类中文字| 精品国产乱码久久久久久夜甘婷婷| 成人aa视频在线观看| 午夜伊人狠狠久久| 久久久久免费观看| 欧美日韩中文字幕精品| 国产一区美女在线| 亚洲制服丝袜av| 久久精品欧美一区二区三区不卡 | 国产传媒欧美日韩成人| 一区二区三区在线观看视频| 日韩美女视频在线| 色香蕉成人二区免费| 精品一区二区久久久| 一区二区在线观看不卡| 精品电影一区二区三区| 在线精品观看国产| 国产传媒日韩欧美成人| 日韩电影一区二区三区| 亚洲欧美偷拍卡通变态| 欧美精品一区二区三区蜜臀| 欧美三级视频在线观看| 成年人网站91| 久久精品国产精品青草| 亚洲高清不卡在线| 中文字幕中文字幕在线一区| 精品欧美乱码久久久久久 | 极品瑜伽女神91| 亚洲午夜激情av|