Package com.bbn.openmap.layer.location

Examples of com.bbn.openmap.layer.location.BasicLocation


     */
    protected void exportPoints() {
        if (labs == null)
            return;
        //OMGraphic oj ;
        BasicLocation oj;
        double lt;
        double ln;
        double z;
        int n = labs.size();
        System.out.println("#type 0");
        for (int i = 0; i < n; i++) {
            oj = (BasicLocation) labs.getOMGraphicAt(i);
            if (oj == null)
                continue;
            E00Data data = (E00Data) oj.getAppObject();
            if (data == null)
                continue;
            lt = oj.lat / 180 * Math.PI;
            ln = oj.lon / 180 * Math.PI;
            z = data.valeur * 0.304;
 
View Full Code Here


            S = isr.readLine();
            if (S == null)
                break;
            parseString(S, coords);
            //System.out.println("E00: point n� "+header[0]);
            BasicLocation bl = new BasicLocation(coords[1], coords[0], "", LabMarker);
            setLocationColor(bl, 0);
            bl.setShowLocation(true);
            labs.add(bl);
            bl.setAppObject(new E00Data(id));
        }
    }
View Full Code Here

            String name = S.substring(50);
            //System.out.print(i+" "+S);
            S = isr.readLine();
            //System.out.println(" "+S);
            parseString(S, I, 14);
            BasicLocation bl = (BasicLocation) labs.getOMGraphicAt(i);
            if (S.length() != 0)
                bl.setName(name);
            else
                bl.setLabel(null);
            setLocationColor(bl, I[0]);
            bl.setShowLocation(true);
        }
    }
View Full Code Here

        //int iflag = r.getItemIndex(prefix.substring(0, 2) + "PTFLAG");

        //System.out.println(itype+" "+iname+" "+iflag);
        for (int i = 0; i < n; i++) {
            r.read(isr);
            BasicLocation bl = (BasicLocation) labs.getOMGraphicAt(i);
            String S = r.getStringField(iname).trim();
            if (bl == null)
                continue;
            if (S.length() != 0) {
                Debug.message("e00", S);
                bl.setName(S);
                bl.setShowName(true);
            } else
                bl.setLabel(null);
            E00Data d = (E00Data) bl.getAppObject();
            if (itype != -1)
                d.type = r.getIntField(itype);
            if (ival != -1)
                d.valeur = r.getIntField(ival);
            if (ival2 != -1)
View Full Code Here

TOP

Related Classes of com.bbn.openmap.layer.location.BasicLocation

Copyright © 2018 www.massapicom. 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.