-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix kml bounding box issues. #761
Draft
tsteven4
wants to merge
8
commits into
GPSBabel:master
Choose a base branch
from
tsteven4:boundingbox3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0062067
Fix kml bounding box, and introduce NVectors.
tsteven4 6a75958
restore lost whitespace in kml gc_logs data.
tsteven4 f6e24ba
get nvectors M_PI on MSVC.
tsteven4 106b22b
improve spelling and capitalization in nvector.cc
tsteven4 ad0dc35
rename vector3d member variables.
tsteven4 68c47b5
kill obsolete comment
tsteven4 1caaa2c
dont use getters within class.
tsteven4 47233e2
performance tweaks for nvector.
tsteven4 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
utc_d,utc_t,lat,lon | ||
2021/11/10,11:00:00 AM,66.000103228632,-179.97904 | ||
2021/11/10,11:00:01 AM,66.0001884601077,-179.97903 | ||
2021/11/10,11:00:02 AM,66.0000230237331,-179.97947 | ||
2021/11/10,11:00:03 AM,66.000045323685,-179.98008 | ||
2021/11/10,11:00:04 AM,66.0001767900345,-179.98048 | ||
2021/11/10,11:00:05 AM,66.0001092928285,-179.98067 | ||
2021/11/10,11:00:06 AM,66.0001668298279,-179.98197 | ||
2021/11/10,11:00:07 AM,66.0000748518391,-179.98320 | ||
2021/11/10,11:00:08 AM,66.0001341555094,-179.98429 | ||
2021/11/10,11:00:09 AM,66.0001213660596,-179.98519 | ||
2021/11/10,11:00:10 AM,66.0001967593428,-179.98558 | ||
2021/11/10,11:00:11 AM,66.0001580625671,-179.98671 | ||
2021/11/10,11:00:12 AM,66.0001378472268,-179.98805 | ||
2021/11/10,11:00:13 AM,66.0001709596168,-179.98906 | ||
2021/11/10,11:00:14 AM,66.0000502908297,-179.98970 | ||
2021/11/10,11:00:15 AM,66.000066383696,-179.99130 | ||
2021/11/10,11:00:16 AM,66.0000462879889,-179.99183 | ||
2021/11/10,11:00:17 AM,66.0001312399228,-179.99340 | ||
2021/11/10,11:00:18 AM,66.0000883525882,-179.99384 | ||
2021/11/10,11:00:19 AM,66.0001647357197,-179.99504 | ||
2021/11/10,11:00:20 AM,66.0001959985441,-179.99596 | ||
2021/11/10,11:00:21 AM,66.0001581122524,-179.99737 | ||
2021/11/10,11:00:22 AM,66.0001028337378,-179.99798 | ||
2021/11/10,11:00:23 AM,66.000105956278,-179.99903 | ||
2021/11/10,11:00:24 AM,66.0000574941283,-179.99956 | ||
2021/11/10,11:00:25 AM,66.0000416369344,179.99915 | ||
2021/11/10,11:00:26 AM,66.0001504925119,179.99831 | ||
2021/11/10,11:00:27 AM,66.0001927654035,179.99675 | ||
2021/11/10,11:00:28 AM,66.0001282065146,179.99621 | ||
2021/11/10,11:00:29 AM,66.0000911889429,179.99493 | ||
2021/11/10,11:00:30 AM,66.0001909788552,179.99362 | ||
2021/11/10,11:00:31 AM,66.0000568057737,179.99293 | ||
2021/11/10,11:00:32 AM,66.0000978383165,179.99211 | ||
2021/11/10,11:00:33 AM,66.0000403599515,179.99138 | ||
2021/11/10,11:00:34 AM,66.0001144849062,179.99045 | ||
2021/11/10,11:00:35 AM,66.0000769781374,179.98854 | ||
2021/11/10,11:00:36 AM,66.0000133158984,179.98783 | ||
2021/11/10,11:00:37 AM,66.0001758676388,179.98699 | ||
2021/11/10,11:00:38 AM,66.0000207460354,179.98606 | ||
2021/11/10,11:00:39 AM,66.0000931231469,179.98538 | ||
2021/11/10,11:00:40 AM,66.0001991309548,179.98429 | ||
2021/11/10,11:00:41 AM,66.0001841979519,179.98311 | ||
2021/11/10,11:00:42 AM,66.0001217081583,179.98251 | ||
2021/11/10,11:00:43 AM,66.0001017396611,179.98182 | ||
2021/11/10,11:00:44 AM,66.0001469324212,179.98183 | ||
2021/11/10,11:00:45 AM,66.0000706021879,179.98175 | ||
2021/11/10,11:00:46 AM,66.0000732617344,179.98178 | ||
2021/11/10,11:00:47 AM,66.0001673249007,179.98162 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@viettaml , note this CL is going to change the LookAt (and thus, FlyTo) on files we handle. It's small on most common data and cases involving > hemisphere of polygons or places spanning hemispheres are subject to weird stuff already.
We can at least reduce OUR weird stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the added test case in kml.cc demonstrates the existing code flying to the wrong place half way around the world. In working a another enhancement I got so sick of GE flying to the wrong side of the world I made a detour (this PR) to fix it.
The small changes in latitude are not due to finite precisions arithmetic, they are due to the span of longitude in the bounding box which moves the midpoint along a great circle diameter towards the pole.
Also note the code currently has COMPARE_BEARING_TO_GRTCIRC defined, which matches our grtcirc calculations, but uses a spherical earth with the equatorial radius. If we correct(undefine) that and use nvectors instead of grtcirc in the future a bunch of reference files will need to be tweaked.