Package org.openstreetmap.josm.data

Examples of org.openstreetmap.josm.data.Bounds


        return "epsg4326";
    }

    public ProjectionBounds getWorldBounds()
    {
        Bounds b = getWorldBoundsLatLon();
        return new ProjectionBounds(latlon2eastNorth(b.min), latlon2eastNorth(b.max));
    }
View Full Code Here


        return new ProjectionBounds(latlon2eastNorth(b.min), latlon2eastNorth(b.max));
    }

    public Bounds getWorldBoundsLatLon()
    {
        return new Bounds(
        new LatLon(-90.0, -180.0),
        new LatLon(90.0, 180.0));
    }
View Full Code Here

        return "epsg325837";
    }

    public ProjectionBounds getWorldBounds()
    {
        Bounds b = getWorldBoundsLatLon();
        return new ProjectionBounds(latlon2eastNorth(b.min), latlon2eastNorth(b.max));
    }
View Full Code Here

        return new ProjectionBounds(latlon2eastNorth(b.min), latlon2eastNorth(b.max));
    }

    public Bounds getWorldBoundsLatLon()
    {
        return new Bounds(
        new LatLon(-85.0, UTMCentralMeridianDeg(getzone())-5.0),
        new LatLon(85.0, UTMCentralMeridianDeg(getzone())+5.0));
    }
View Full Code Here

        return "swissgrid";
    }

    public ProjectionBounds getWorldBounds()
    {
        Bounds b = getWorldBoundsLatLon();
        return new ProjectionBounds(latlon2eastNorth(b.min), latlon2eastNorth(b.max));
    }
View Full Code Here

        return new ProjectionBounds(latlon2eastNorth(b.min), latlon2eastNorth(b.max));
    }

    public Bounds getWorldBoundsLatLon()
    {
        return new Bounds(
        new LatLon(45.7, 5.7),
        new LatLon(47.9, 10.6));
    }
View Full Code Here

    return false;
  }

  private static void downloadFromParamString(final boolean rawGps, String s) {
    if (s.startsWith("http:")) {
      final Bounds b = OsmUrlToBounds.parse(s);
      if (b == null)
        JOptionPane.showMessageDialog(Main.parent, tr(
            "Ignoring malformed URL: \"{0}\"", s));
      else {
        // DownloadTask osmTask =
View Full Code Here

      mvp.paint(tempG, this);
    }

    // draw world borders
    tempG.setColor(Color.WHITE);
    Bounds b = new Bounds();
    Point min = getPoint(getProjection().latlon2eastNorth(b.min));
    Point max = getPoint(getProjection().latlon2eastNorth(b.max));
    int x1 = Math.min(min.x, max.x);
    int y1 = Math.min(min.y, max.y);
    int x2 = Math.max(min.x, max.x);
View Full Code Here

    @Override public void mergeFrom(Layer from) {
    }

    private Bounds XYtoBounds (int x, int y) {
        return new Bounds(
            new LatLon(      x * ImageSize / pixelPerDegree,       y * ImageSize / pixelPerDegree),
            new LatLon((x + 1) * ImageSize / pixelPerDegree, (y + 1) * ImageSize / pixelPerDegree));
    }
View Full Code Here

    private int modulo (int a, int b) {
        return a % b >= 0 ? a%b : a%b+b;
    }

    protected Bounds bounds(){
        return new Bounds(
            mv.getLatLon(0, mv.getHeight()),
            mv.getLatLon(mv.getWidth(), 0));
    }
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.data.Bounds

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.