Skip to content
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 Equal Earth rendering for wide images #5972

Closed
wants to merge 2 commits into from

Conversation

dbaston
Copy link
Contributor

@dbaston dbaston commented Jan 14, 2020

This PR resolves #5958 , at least for my test case. Along the lines of @rouault 's suggested fix, the interpolation test point is taken to be just after the midpoint of the scanline. (I think this is more conservative than taking the point before the middle.) Since msApproxTransformer bails early for scanlines with <= 5 points, the middle+1 point will always be available.

This corrects for an edge case where linear interpolation is successful
for the middle point of a scanline but is incorrect for all other
points.

Fixes MapServer#5958
@dbaston dbaston closed this Jan 16, 2020
@rouault
Copy link
Contributor

rouault commented Jan 16, 2020

Why closing ?

@dbaston
Copy link
Contributor Author

dbaston commented Jan 16, 2020

Looks like the fix works for a width of 2163 pixels but not 2560 😢

Also looks like it broke an existing test. And I assume it should been opened against master, not branch-7-4 (the GitHub default until recently, I think?)

@rouault
Copy link
Contributor

rouault commented Jan 16, 2020

Looks like the fix works for a width of 2163 pixels but not 2560

ah ok

Also looks like it broke an existing test.

Not necessarily a show stopper. Would need to check if the difference is significant or not. The current results are not necessarily an absolute truth...

assume it should been opened against master

Indeed, the policy is now to target master, and backport if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants