Examples of LatLonPoint


Examples of com.bbn.openmap.LatLonPoint

        int tx = x - this.wx + dUSX;
        int ty = this.hy - y + dUSY;

        if (Debug.debugging("LLXYViewi")) {
            // This is only to aid printing....
            LatLonPoint tllp = helper.inverse(tx, ty, llp);

            Debug.output("xy: " + x + "," + y + " txty: " + tx + "," + ty
                    + " llp: " + tllp.getLongitude() + "," + tllp.getLatitude());
        }

        return (helper.inverse(tx, ty, llp));
    }
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

    return wrappedProjection.forwardRaw(rawllptsInDifferentDatum, rawoff,
        xcoords, ycoords, visible, copyoff, copylen);
  }

  public LatLonPoint getLowerRight() {
    LatLonPoint llp = wrappedProjection.getLowerRight();
    return datum.inverse(llp.getLongitude(), llp.getLatitude());
  }
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

    LatLonPoint llp = wrappedProjection.getLowerRight();
    return datum.inverse(llp.getLongitude(), llp.getLatitude());
  }

  public LatLonPoint getUpperLeft() {
    LatLonPoint llp = wrappedProjection.getUpperLeft();
    return datum.inverse(llp.getLongitude(), llp.getLatitude());
  }
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

            if (renderType == OMGraphic.RENDERTYPE_LATLON
                    || renderType == OMGraphic.RENDERTYPE_OFFSET) {

                if (projection != null) {
                    LatLonPoint center = circle.getLatLon();
                    java.awt.Point p = projection.forward(center);
                    centerx = (int) p.getX();
                    centery = (int) p.getY();
                }
                if (renderType == OMGraphic.RENDERTYPE_OFFSET) {
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

                // grab point is the lat/lon point.
                llgp = gpc;
            }

            if (projection != null) {
                LatLonPoint llp = projection.inverse(llgp.getX(), llgp.getY());

                circle.setLatLon(llp.getLatitude(), llp.getLongitude());

                // Do the radius for LATLON circles.
                if (renderType == OMGraphic.RENDERTYPE_LATLON
                        && movingPoint == gpr) {

                    LatLonPoint llpm = projection.inverse(gpr.getX(),
                            gpr.getY());

                    float radius = Length.DECIMAL_DEGREE.fromRadians((float) GreatCircle.spherical_distance(llpm.radlat_,
                            llpm.radlon_,
                            llp.radlat_,
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

     * @param nverts number of vertices for the poly-circle (if <
     *        3, value is generated internally)
     */
    public OMCircle(float latPoint, float lonPoint, float radius, Length units,
            int nverts) {
        this(new LatLonPoint(latPoint, lonPoint), radius, units, nverts);
    }
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

        int top = 0;
        int bottom = 0;
        int left = 0;
        int right = 0;
        LatLonPoint llp;
        int latoffset = 0;
        int lonoffset = 0;

        boolean doStraight = true;

        if (ntr == false) {

            if (renderType == OMGraphic.RENDERTYPE_LATLON
                    || renderType == OMGraphic.RENDERTYPE_OFFSET) {

                if (projection != null) {
                    float wlon = raster.getULLon();
                    float nlat = raster.getULLat();
                    float elon = raster.getLRLon();
                    float slat = raster.getLRLat();

                    llp = new LatLonPoint(nlat, wlon);
                    java.awt.Point p = projection.forward(llp);
                    if (renderType == OMGraphic.RENDERTYPE_LATLON) {
                        doStraight = false;
                        top = (int) p.getY();
                        left = (int) p.getX();
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

        latitude = lat;
        longitude = lon;
    }

    public LatLonPoint getLocation() {
        return getLocation(new LatLonPoint());
    }
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

    protected void setGrabPointsForOMSI(OMScalingIcon icon) {
        if (projection != null) {
            float lon = icon.getLon();
            float lat = icon.getLat();
            int renderType = icon.getRenderType();
            LatLonPoint llp = new LatLonPoint(lat, lon);
            java.awt.Point p = projection.forward(llp);
            if (renderType == OMGraphic.RENDERTYPE_LATLON) {
                gpc.set((int) p.getX(), (int) p.getY());
            }
        }
View Full Code Here

Examples of com.bbn.openmap.LatLonPoint

    protected void setGrabPointsForOMSI() {

        if (projection != null) {
            //movingPoint == gpc
            LatLonPoint llp1 = projection.inverse(gpc.getX(), gpc.getY());
            raster.setLat(llp1.getLatitude());
            raster.setLon(llp1.getLongitude());
            // point.setNeedToRegenerate set
        }

        if (projection != null) {
            regenerate(projection);
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.