Examples of LatLonPoint


Examples of com.bbn.openmap.LatLonPoint

        System.out.println("Creating MapBean");
        // Create a MapBean, and add it to the MapHandler.
        MapBean map = new MapBean();

        // Set the map's center property...
        map.setCenter(new LatLonPoint(43.0f, -95.0f));
        // and scale
        map.setScale(80000000f);

        mapHandler.add(map);
        // Add the map to the JFrame
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

                                    java.lang.String staticArgs,
                                    org.omg.CORBA.StringHolder dynamicArgs,
                                    com.bbn.openmap.CSpecialist.GraphicChange notifyOnChange,
                                    String uniqueID) {
        try {
            LatLonPoint newll1 = new LatLonPoint(ll1.lat, ll1.lon);
            LatLonPoint newll2 = new LatLonPoint(ll2.lat, ll2.lon);

            /*
             * If the we are zoomed out so that we _might_ have the
             * entire world on the screen, then let's check to see if
             * east and west are approximately equal. If they are,
             * change them to -180 and +180 so that we get the entire
             * world without having trouble with the floating point
             * rounding errors that allow west to be slightly less
             * than east (by .00001) and confuse our clipping routines
             * into thinking that there should be nothing on the
             * screen since nothing falls in that .00001 slice of the
             * world.
             */
            if ((p.scale > 100000000)
                    && MoreMath.approximately_equal(ll1.lon, ll2.lon, .01)) {
                newll1.setLongitude(-180.0f);
                newll2.setLongitude(180.0f);
            }

            forgetComps(uniqueID);
            Debug.message("vpfspecialist", "fillRectangle.. " + staticArgs);
            Hashtable dynArgs = parseDynamicArgs(dynamicArgs.value);
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

            alt = me.isAltDown();

            if (projection != null)
                llpoint = projection.inverse(point);
            else
                llpoint = new LatLonPoint(0f, 0f);
        }

        press = MouseDown;
        event_type = eventType;
    }
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

public class MakeProjection {
    Projection p;

    public MakeProjection(com.bbn.openmap.CSpecialist.CProjection mp) {
        LatLonPoint center = new LatLonPoint(mp.center.lat, mp.center.lon);

        switch (mp.kind) {
        case Mercator.MercatorType:
            p = new Mercator(center, mp.scale, mp.width, mp.height);
            break;
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

    public OMGraphicList getRectangle() {
        int scale = 30000000;
        int width = 640;
        int height = 480;
        LatLonPoint upperLeft = new LatLonPoint(90.0f, -180.0f);
        LatLonPoint lowerRight = new LatLonPoint(-90.0f, 180.0f);

        warehouse.clear();

        System.out.println("VMAP2Shape.getRectangle(): "
                + "calling drawTile with boundaries: " + upperLeft + lowerRight);
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

                    screenwidth,
                    screenheight,
                    covname,
                    warehouse,
                    ll1,
                    new LatLonPoint(ll2.getLatitude(), 180f - .00001f)/* 180-epsilon */);
            drawTile(scale,
                    screenwidth,
                    screenheight,
                    covname,
                    warehouse,
                    new LatLonPoint(ll1.getLatitude(), -180f),
                    ll2);
            return;
        }

        if (Debug.debugging("vpf")) {
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

                    screenwidth,
                    screenheight,
                    covname,
                    warehouse,
                    ll1,
                    new LatLonPoint(ll2.getLatitude(), 180f - .00001f)//180-epsilon
            );
            drawFeatures(scale,
                    screenwidth,
                    screenheight,
                    covname,
                    warehouse,
                    new LatLonPoint(ll1.getLatitude(), -180f),
                    ll2);
            return;
        }

        if (Debug.debugging("vpf")) {
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

        if (p == null) {
            Debug.error("VPFLayer.getRectangle() called without a projection set in the layer. Make sure a projection is set in the layer before calling getRectangle.");
            return new OMGraphicList();
        }

        LatLonPoint upperleft = p.getUpperLeft();
        LatLonPoint lowerright = p.getLowerRight();
        if (Debug.debugging("vpfdetail")) {
            Debug.output("VPFLayer.getRectangle: " + coverageType /*
                                                                   * + " " +
                                                                   * dynamicArgs
                                                                   */);
 
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

     * @throws exception if a parameter is missing or invalid.
     */
    public Projection create(Properties props) throws ProjectionException {

        try {
            LatLonPoint llp = (LatLonPoint) props.get(ProjectionFactory.CENTER);
            float scale = PropUtils.floatFromProperties(props,
                    ProjectionFactory.SCALE,
                    10000000);
            int height = PropUtils.intFromProperties(props,
                    ProjectionFactory.HEIGHT,
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

            direction = -1f;
        lon = (float) (deglon + (Math.abs(minlon * 60.0f) + Math.abs(seclon))
                / 3600f * direction);
        //  System.out.println("lat: " +lat + " lon: "+lon);

        return (new LatLonPoint(lat, lon));
    }
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.