Changeset 11852 in josm for trunk/src/org/openstreetmap/josm/data/validation/util/ValUtil.java
- Timestamp:
- 2017-04-08T01:08:59+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/util/ValUtil.java
r10378 r11852 43 43 Set<Point2D> cellNodes = new HashSet<>(); 44 44 Point2D cell; 45 double griddetail = OsmValidator.getGridDetail(); 45 46 46 47 // First, round coordinates 47 48 // CHECKSTYLE.OFF: SingleSpaceSeparator 48 long x0 = Math.round(n1.getEastNorth().east() * OsmValidator.griddetail);49 long y0 = Math.round(n1.getEastNorth().north() * OsmValidator.griddetail);50 long x1 = Math.round(n2.getEastNorth().east() * OsmValidator.griddetail);51 long y1 = Math.round(n2.getEastNorth().north() * OsmValidator.griddetail);49 long x0 = Math.round(n1.getEastNorth().east() * griddetail); 50 long y0 = Math.round(n1.getEastNorth().north() * griddetail); 51 long x1 = Math.round(n2.getEastNorth().east() * griddetail); 52 long y1 = Math.round(n2.getEastNorth().north() * griddetail); 52 53 // CHECKSTYLE.ON: SingleSpaceSeparator 53 54 … … 76 77 // Then floor coordinates, in case the way is in the border of the cell. 77 78 // CHECKSTYLE.OFF: SingleSpaceSeparator 78 x0 = (long) Math.floor(n1.getEastNorth().east() * OsmValidator.griddetail);79 y0 = (long) Math.floor(n1.getEastNorth().north() * OsmValidator.griddetail);80 x1 = (long) Math.floor(n2.getEastNorth().east() * OsmValidator.griddetail);81 y1 = (long) Math.floor(n2.getEastNorth().north() * OsmValidator.griddetail);79 x0 = (long) Math.floor(n1.getEastNorth().east() * griddetail); 80 y0 = (long) Math.floor(n1.getEastNorth().north() * griddetail); 81 x1 = (long) Math.floor(n2.getEastNorth().east() * griddetail); 82 y1 = (long) Math.floor(n2.getEastNorth().north() * griddetail); 82 83 // CHECKSTYLE.ON: SingleSpaceSeparator 83 84
Note:
See TracChangeset
for help on using the changeset viewer.