-
Notifications
You must be signed in to change notification settings - Fork 68
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
Orthographic #1990
Orthographic #1990
Conversation
Data in: |
@doutriaux1 @aashish24 Please review. Note that labels are wrong for mercator and orthographic projections as proj4 returns infinity for certain combination of values. We can fix the labels in a different PR. |
@danlipsa this is great. If is possible, can we fix the legend as well in the same branch since in the new baselines legend look more wrong now. |
@aashish24 @doutriaux1 Looking at the code, I would fix the tics/labels in a more general way, fixing it in a simple/specific way is not easy to do. The problem is that the code assumes that the outline of the data in lon/lat space results in an outline in projected space. This is not true for mercator and orthographic projections. I want to fix this by getting the proper outline - where data is not projected to infinity and passing that to the vcs routine that computes the location of the ticks/labels. I think this would affect many baselines so I would do it in a separate PR. |
@aashish24 @doutriaux1 This also seems to be a big/disruptive change, so we have to decide if we want it for this release. |
@aashish24 @doutriaux1 I'll look some more. Maybe I can do something simple for mercator. Oblique orthographic is a tough case, as the outline is not on a latitude or longitude. |
Sounds good to me. We can handle oblique one in the next PR. |
@aashish24 @doutriaux1 I fixed the labels for mercator and the labels for orthographic look a lot better. There are also some aeqd labels that were fixed in the process. Please review - you'll have to download the baselines to see all of them: 49 changed 😄 |
@danlipsa ubuntu results at: https://open.cdash.org/viewTest.php?onlyfailed&buildid=4385602
|
I added the missing test file
seg fault - not sure what this is.
this seems to have the old baseline.
the stipples look like they are shifted. However on both my linux and my mac the are like in the baselines. Should we add an alternate baseline? I think that would be ok as long as this shifting is deterministic and we have only two versions. |
@doutriaux1 All tests pass on both my mac and my linux box. |
@danlipsa I updated the branch, but I'm not sure anything is going to pass any longer since @aashish24 merged his vector branch in. Do you mind double checking the baselines? I'm rebuilding this from scratch on my Ubuntu. |
@doutriaux1 I will rebase and push a new version. |
This is because proj4 sets points that are not visisble to infinity. We set those points to 0 and hide them.
…oxfill_mercator We deal with points set to infinity by setting them to 0 and hidding them. See the following commit: BUG: orthographic projection plot is empty
@danlipsa see: https://open.cdash.org/viewTest.php?onlydelta&buildid=4390366 |
@danlipsa ok now I get: https://open.cdash.org/viewTest.php?onlyfailed&buildid=4390515 I don't think any failure is related to your branch any more, correct? |
@doutriaux1 That is right. I just merged a fix for test_vcs_png_window_resize. This should be ready to merge. Make sure you merge the data as well. |
Or I can merge if you prefer. |
No description provided.