Changeset 35978 in osm for applications/editors/josm/plugins/MicrosoftStreetside
- Timestamp:
- 2022-06-15T20:10:48+02:00 (3 years ago)
- Location:
- applications/editors/josm/plugins/MicrosoftStreetside
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/MicrosoftStreetside/gradle.properties
r35816 r35978 8 8 # Minimum required JOSM version to run this plugin, choose the lowest version possible that is compatible. 9 9 # You can check if the plugin compiles against this version by executing `./gradlew compileJava_minJosm`. 10 plugin.main.version=18 00410 plugin.main.version=18494 11 11 #plugin.version= 12 12 # Version of JOSM against which the plugin is compiled 13 13 # Please check, if the specified version is available for download from https://josm.openstreetmap.de/download/ . 14 14 # If not, choose the next higher number that is available, or the gradle build will break. 15 plugin.compile.version=18 00415 plugin.compile.version=18494 16 16 plugin.requires=apache-commons;apache-http;utilsplugin2;javafx 17 17 -
applications/editors/josm/plugins/MicrosoftStreetside/src/org/openstreetmap/josm/plugins/streetside/StreetsideLayer.java
r35601 r35978 23 23 import org.apache.log4j.Logger; 24 24 import org.openstreetmap.josm.data.Bounds; 25 import org.openstreetmap.josm.data.coor.ILatLon; 25 26 import org.openstreetmap.josm.data.osm.DataSet; 26 27 import org.openstreetmap.josm.data.osm.event.DataChangedEvent; … … 462 463 .filter(img -> // Filters out images too far away from target 463 464 img != null && 464 img.getMovingLatLon().greatCircleDistance(target.getMovingLatLon()) 465 img.getMovingLatLon().greatCircleDistance((ILatLon) target.getMovingLatLon()) 465 466 < StreetsideProperties.SEQUENCE_MAX_JUMP_DISTANCE.get() 466 467 ) … … 501 502 public int compare(StreetsideAbstractImage img1, StreetsideAbstractImage img2) { 502 503 return (int) Math.signum( 503 img1.getMovingLatLon().greatCircleDistance(target.getMovingLatLon()) - 504 img2.getMovingLatLon().greatCircleDistance(target.getMovingLatLon()) 504 img1.getMovingLatLon().greatCircleDistance((ILatLon) target.getMovingLatLon()) - 505 img2.getMovingLatLon().greatCircleDistance((ILatLon) target.getMovingLatLon()) 505 506 ); 506 507 }
Note:
See TracChangeset
for help on using the changeset viewer.