Changeset 12725 in josm for trunk/src/org/openstreetmap/josm/data/osm/visitor/BoundingXYVisitor.java
- Timestamp:
- 2017-09-04T20:19:23+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/BoundingXYVisitor.java
r12630 r12725 74 74 * Visiting call for lat/lon. 75 75 * @param latlon lat/lon 76 * @since 12725 (public for ILatLon parameter) 77 */ 78 public void visit(ILatLon latlon) { 79 if (latlon != null) { 80 visit(latlon.getEastNorth(Main.getProjection())); 81 } 82 } 83 84 /** 85 * Visiting call for lat/lon. 86 * @param latlon lat/lon 76 87 */ 77 88 public void visit(LatLon latlon) { 78 if (latlon != null) { 79 visit((ILatLon) latlon); 80 } 81 } 82 83 private void visit(ILatLon latlon) { 84 visit(latlon.getEastNorth()); 89 visit((ILatLon) latlon); 85 90 } 86 91 … … 138 143 bounds = new ProjectionBounds(new LatLon( 139 144 Math.max(-90, minLatlon.lat() - enlargeDegree), 140 Math.max(-180, minLatlon.lon() - enlargeDegree)).getEastNorth( ),145 Math.max(-180, minLatlon.lon() - enlargeDegree)).getEastNorth(Main.getProjection()), 141 146 new LatLon( 142 147 Math.min(90, maxLatlon.lat() + enlargeDegree), 143 Math.min(180, maxLatlon.lon() + enlargeDegree)).getEastNorth( ));148 Math.min(180, maxLatlon.lon() + enlargeDegree)).getEastNorth(Main.getProjection())); 144 149 } 145 150
Note:
See TracChangeset
for help on using the changeset viewer.