Changeset 15449 in josm
- Timestamp:
- 2019-10-10T17:06:20+02:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/coor/LatLon.java
r14794 r15449 18 18 19 19 import org.openstreetmap.josm.data.Bounds; 20 import org.openstreetmap.josm.data.osm.Node; 20 21 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 21 22 import org.openstreetmap.josm.tools.Logging; … … 193 194 * Determines if this lat/lon is outside of the world 194 195 * @return <code>true</code>, if the coordinate is outside the world, compared by using lat/lon. 195 */ 196 * @deprecated use {@link Node#isOutSideWorld} instead, see also #13538. 197 */ 198 @Deprecated 196 199 public boolean isOutSideWorld() { 197 200 Bounds b = ProjectionRegistry.getProjection().getWorldBoundsLatLon(); -
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r15335 r15449 11 11 import java.util.stream.Collectors; 12 12 13 import org.openstreetmap.josm.data.Bounds; 13 14 import org.openstreetmap.josm.data.coor.EastNorth; 14 15 import org.openstreetmap.josm.data.coor.LatLon; … … 411 412 LatLon ll = getCoor(); 412 413 if (ll != null) { 413 if (ll.isOutSideWorld()) 414 Bounds b = ProjectionRegistry.getProjection().getWorldBoundsLatLon(); 415 if (lat() < b.getMinLat() || lat() > b.getMaxLat() || lon() < b.getMinLon() || lon() > b.getMaxLon()) { 414 416 return true; 417 } 415 418 if (!ProjectionRegistry.getProjection().latlon2eastNorth(ll).equalsEpsilon(getEastNorth(), 1.0)) { 416 419 // we get here if a node was moved or created left from -180 or right from +180
Note:
See TracChangeset
for help on using the changeset viewer.