Changeset 12171 in josm
- Timestamp:
- 2017-05-15T17:55:56+02:00 (8 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java
r12161 r12171 244 244 for (int i = from + 1; i < to; i++) { 245 245 Node n = wnew.get(i); 246 // CHECKSTYLE.OFF: SingleSpaceSeparator 246 247 double xte = Math.abs(Ellipsoid.WGS84.a 247 248 * xtd(fromN.lat() * Math.PI / 180, fromN.lon() * Math.PI / 180, toN.lat() * Math.PI / 180, 248 249 toN.lon() * Math.PI / 180, n.lat() * Math.PI / 180, n.lon() * Math.PI / 180)); 250 // CHECKSTYLE.ON: SingleSpaceSeparator 249 251 if (xte > xtemax) { 250 252 xtemax = xte; -
trunk/src/org/openstreetmap/josm/data/Bounds.java
r12162 r12171 20 20 * lat/lon min/max values. The values are rounded to LatLon.OSM_SERVER_PRECISION 21 21 * 22 * @author imi 23 * 22 24 * @see BBox to represent invalid areas. 23 *24 * @author imi25 25 */ 26 26 public class Bounds { -
trunk/src/org/openstreetmap/josm/data/coor/ILatLon.java
r12164 r12171 22 22 * @return the longitude or NaN if {@link #isLatLonKnown()} returns false 23 23 */ 24 publicdouble lon();24 double lon(); 25 25 26 26 /** … … 28 28 * @return the latitude or NaN if {@link #isLatLonKnown()} returns false 29 29 */ 30 publicdouble lat();30 double lat(); 31 31 32 32 /** -
trunk/src/org/openstreetmap/josm/data/gpx/GpxTrack.java
r12156 r12171 70 70 */ 71 71 @FunctionalInterface 72 publicinterface GpxTrackChangeListener {72 interface GpxTrackChangeListener { 73 73 /** 74 74 * Called when the gpx data changed. -
trunk/src/org/openstreetmap/josm/data/projection/Ellipsoid.java
r12161 r12171 7 7 package org.openstreetmap.josm.data.projection; 8 8 9 import org.openstreetmap.josm.data.coor.ILatLon;10 9 import org.openstreetmap.josm.data.coor.LatLon; 11 10 import org.openstreetmap.josm.tools.Utils; -
trunk/src/org/openstreetmap/josm/data/projection/Projecting.java
r12163 r12171 36 36 * @param ll the geographical point to convert (in WGS84 lat/lon) 37 37 * @return the corresponding east/north coordinates 38 * @see ILatLon#getEastNorth(Projecting) as shorthand. 38 39 * @since 12161 39 * @see ILatLon#getEastNorth(Projecting)40 40 */ 41 41 EastNorth latlon2eastNorth(ILatLon ll); … … 51 51 /** 52 52 * Gets the base projection instance used. 53 * This may be the same as this one or a different one if this one is translated in east/north space. 53 54 * @return The projection. 54 55 */ -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelper.java
r12168 r12171 178 178 // The heat map was invalidated since the last draw. 179 179 private boolean gpxLayerInvalidated; 180 181 180 182 181 private void setupColors() { … … 724 723 Point screen = mv.getPoint(trkPnt.getEastNorth()); 725 724 726 727 725 if (hdopCircle && trkPnt.get(GpxConstants.PT_HDOP) != null) { 728 726 // hdop value -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxDataTest.java
r12169 r12171 47 47 48 48 /** 49 * @throws java.lang.Exception49 * Set up empty test data 50 50 */ 51 51 @Before 52 public void setUp() throws Exception{52 public void setUp() { 53 53 data = new GpxData(); 54 54 } … … 281 281 @Test 282 282 public void testLength() { 283 ImmutableGpxTrack track1 = waypointGpxTrack(new WayPoint(new LatLon(0, 0)), new WayPoint(new LatLon(1, 1)), new WayPoint(new LatLon(0, 2))); 284 ImmutableGpxTrack track2 = waypointGpxTrack(new WayPoint(new LatLon(0, 0)), new WayPoint(new LatLon(-1, 1))); 283 ImmutableGpxTrack track1 = waypointGpxTrack( 284 new WayPoint(new LatLon(0, 0)), 285 new WayPoint(new LatLon(1, 1)), 286 new WayPoint(new LatLon(0, 2))); 287 ImmutableGpxTrack track2 = waypointGpxTrack( 288 new WayPoint(new LatLon(0, 0)), 289 new WayPoint(new LatLon(-1, 1))); 285 290 data.addTrack(track1); 286 291 data.addTrack(track2);
Note:
See TracChangeset
for help on using the changeset viewer.