Examples of OMGraphicList


Examples of com.bbn.openmap.omGraphics.OMGraphicList

        if (Debug.debugging("areas")) {
            Debug.output("Reading cached graphics");
        }

        OMGraphicList omgraphics = new OMGraphicList();

        if (url != null) {
            omgraphics.readGraphics(url);
        }
        return omgraphics;
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

    /**
     * Get all the graphics from the shapefile, colored appropriately.
     */
    public OMGraphicList getGraphics() {
        if (omgraphics == null) {
            omgraphics = new OMGraphicList();
            try {
                spatialIndex.getOMGraphics(-180,
                        -90,
                        180,
                        90,
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

        if (cacheURL != null) {
            return omgraphics;
        }

        if (spatialIndex == null) {
            return new OMGraphicList();
        }

        if (politicalAreas == null) {
            initialize(originalPrefix, originalProperties);
        }

        OMGraphicList list = new OMGraphicList();

        // check for dateline anomaly on the screen. we check for
        // ulLon >= lrLon, but we need to be careful of the check for
        // equality because of floating point arguments...
        if (ProjMath.isCrossingDateline(ulLon, lrLon, proj.getScale())) {
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     * @return The OMGraphics value
     * @exception IOException
     * @since
     */
    public OMGraphicList getOMGraphics() throws IOException {
        OMGraphicList WV = new OMGraphicList();
        isr.readLine();
        while (true) {
            String S = isr.readLine();
            if (S == null)
                break;
            //System.out.println("E00 "+S);
            if (S.startsWith("ARC"))
                readARC();
            else if (S.startsWith("LAB"))
                readLAB();
            else if (S.startsWith("IFO"))
                readIFO();
            else if (S.startsWith("LOG"))
                readLOG();
            else if (S.startsWith("PRJ"))
                readPRJ();
            else if (S.startsWith("CNT"))
                readCNT();
            else if (S.startsWith("PAL"))
                readPAL();
            else if (S.startsWith("SIN"))
                readSIN();
            else if (S.startsWith("TOL"))
                readTOL();
            else if (S.startsWith("TX7"))
                readTX7();
            else if (S.startsWith("EOS"))
                break;
            //System.out.println("E00 "+S+" fin");
        }

        if (labs != null) {
            labs.setAppObject("LABS");
            WV.add(labs);
        }
        if (arcs != null) {
            arcs.setAppObject("ARCS");
            WV.add(arcs);
        }
        if (tx7 != null) {
            tx7.setAppObject("TX7");
            WV.add(tx7);
        }

        return WV;
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     * @exception IOException
     * @since
     */
    void readTX7() throws IOException {
        Debug.message("e00", "E00: read TX7");
        tx7 = new OMGraphicList();
        int[] header = new int[8];
        float[] coords = new float[2];
        isr.readLine();
        while (true) {
            String S = isr.readLine();
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     * @exception IOException
     * @since
     */
    void readLAB() throws IOException {
        Debug.message("e00", "E00: read LAB");
        labs = new OMGraphicList();
        float[] coords = new float[2];
        int[] header = new int[1];
        while (true) {
            String S = isr.readLine();
            if (S == null)
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     * @exception IOException
     * @since
     */
    void readARC() throws IOException {
        Debug.message("e00", "E00: read ARC");
        arcs = new OMGraphicList();
        int narc = 1;
        int[] header = new int[7];
        float[] coords = new float[4];
        while (true) {
            String S = isr.readLine();
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

            Debug.output("\txmin: " + xmin + "; ymin: " + ymin);
            Debug.output("\txmax: " + xmax + "; ymax: " + ymax);
        }

        if (list == null) {
            list = new OMGraphicList();
        }

        if (shp == null) {
            shp = new BinaryBufferedFile(shpFileName);
        }

        if (shp == null) {
            return list;
        }

        EsriGraphicFactory.ReadByteTracker byteTracker = new EsriGraphicFactory.ReadByteTracker();
        EsriGraphicFactory factory = getFactory();
        factory.setDataCoordTransformation(dataProj);

        OMGraphicList labels = new OMGraphicList();
        list.add(labels);

        for (Iterator it = entryIterator(dataProj); it.hasNext();) {
            Entry entry = (Entry) it.next();
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

                                          Projection mapProj,
                                          GeoCoordTransformation dataProj)
            throws IOException, FormatException {

        if (retList == null) {
            retList = new OMGraphicList();
        }

        if (shp == null) {
            shp = new BinaryBufferedFile(shpFileName);
        }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     *         rules in the DbfHandler.
     */
    public OMGraphicList evaluateDbf(OMGraphicList retList, Projection mapProj) {

        if (dbf != null) {
            OMGraphicList labels = new OMGraphicList();
            retList.add(labels);

            OMGraphicList testList = new OMGraphicList();
            for (Iterator it = retList.iterator(); it.hasNext();) {
                OMGraphic omg = (OMGraphic) it.next();

                if (omg != null) {

                    omg = dbf.evaluate(omg, labels, mapProj);

                    if (mapProj != null) {
                        omg.generate(mapProj);
                    }
                    testList.add(omg);
                }
            }
            retList = testList;
        }

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.