Examples of MGRSPoint


Examples of com.bbn.openmap.proj.coords.MGRSPoint

     */
    public LatLonPoint getLatLon() {

        try {
            // Allow blank minutes and seconds fields to represent zero
            return new MGRSPoint(mgrs.getText()).toLatLonPoint();

        } catch (NumberFormatException except) {
            //        System.out.println(except.toString());
            clearTextBoxes();
        }
View Full Code Here

Examples of com.bbn.openmap.proj.coords.MGRSPoint

        if (llpoint == null) {
            clearTextBoxes();
            return;
        }

        MGRSPoint mgrsp = new MGRSPoint(llpoint);
        mgrs.setText(mgrsp.getMGRS());
    }
View Full Code Here

Examples of com.bbn.openmap.proj.coords.MGRSPoint

        QuadTree labelTree = new QuadTree();

        // Need to use MGRSPoint to get MGRS zone letters, the UTM
        // zone letters are N and S for the hemisphere, which isn't
        // very interesting.
        UTMPoint utm = new MGRSPoint();
        LatLonPoint llp = new LatLonPoint();
        float latitude;
        float longitude;

        for (int lat = -80; lat <= 72; lat += 8) {
View Full Code Here

Examples of com.bbn.openmap.proj.coords.MGRSPoint

        QuadTree labelTree = new QuadTree();

        // Need to use MGRSPoint to get MGRS zone letters, the UTM
        // zone letters are N and S for the hemisphere, which isn't
        // very interesting.
        MGRSPoint mgrs = new MGRSPoint();
        LatLonPoint llp = new LatLonPoint();
        float latitude;
        float longitude;

        for (int lat = -80; lat <= 72; lat += 8) {
View Full Code Here

Examples of com.bbn.openmap.proj.coords.MGRSPoint

     * @param ellipsoid the ellipsoid to use.
     */
    protected OMGeometryList createMGRSRectangles(LatLonPoint llp,
                                                  int accuracy, int numRects,
                                                  Ellipsoid ellipsoid) {
        MGRSPoint mgrs = new MGRSPoint();
        mgrs.setAccuracy(accuracy);
        MGRSPoint.LLtoMGRS(llp, ellipsoid, mgrs);

        float accuracyBonus = 100000f / (float) Math.pow(10, accuracy);

        OMGeometryList list = new OMGeometryList();
View Full Code Here

Examples of com.bbn.openmap.proj.coords.MGRSPoint

                zone_letter,
                llp1);
        llpoints[6] = llp1.getLatitude();
        llpoints[7] = llp1.getLongitude();

        MGRSPoint mgrs = new MGRSPoint(northing, easting, zone_number, zone_letter);
        mgrs.resolve(mgrsBasePoint.getAccuracy());
        // MGRSPoint.MGRStoLL(mgrs, ellipsoid, llp1);
        String mgrsString = mgrs.getMGRS();

        if (Debug.debugging("utmgriddetail"))
            Debug.output(" - assigning " + mgrsString + " to poly with "
                    + mgrs.getAccuracy());

        PolygonGeometry poly = new PolygonGeometry.LL(llpoints, OMGraphic.DECIMAL_DEGREES, (interval <= 1000 ? OMGraphic.LINETYPE_STRAIGHT
                : OMGraphic.LINETYPE_GREATCIRCLE));
        poly.setAppObject(mgrsString);
        return poly;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.