The NASA WorldWind Java SDK (WWJ) is for building cross-platform 3D geospatial desktop applications in Java.
712
stars
324
forks
source link
Incorrect Result from LatLon's getCenter(Iterable<? extends LatLon>) Method #237
Open
OneDeuxTriSeiGo opened 2 years ago
Description
One of
LatLon
'sgetCenter()
methods seems to produce the wrong result when the iterable of LatLons/Positions passed in cross over the Prime Meridian.Specific Method: https://github.com/NASAWorldWind/WorldWindJava/blob/develop/src/gov/nasa/worldwind/geom/LatLon.java#L1128
Steps to Reproduce
LatLon.getCenter(Iterable<? extends LatLon> locations)
Expected behavior: The result should be in the center of the points provided.
Actual behavior: The resulting point is on the opposite side of the globe as the expected center point.
Reproduces how often: 100% of the time.
Operating System and Version
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.