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 an issue with affine transforms #1073

Merged
merged 1 commit into from
Feb 25, 2021
Merged

Fix an issue with affine transforms #1073

merged 1 commit into from
Feb 25, 2021

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Feb 25, 2021

Affine transforms would be skipped in certain cases where an optimization path was followed. Detect this condition and don't use the simpler optimized path when affine transforms are present.

Affine transforms would be skipped in certain cases where an
optimization path was followed.  Detect this condition and don't use the
simpler optimized path when affine transforms are present.
@manthey manthey requested a review from aashish24 February 25, 2021 19:23
@aashish24
Copy link
Member

@manthey what is the context here? Did we hit a case that you could mention here?

@manthey
Copy link
Contributor Author

manthey commented Feb 25, 2021

Brandon discovered that webgl polygons weren't being affected by an affine transform while text features were. The specific problem is that there is a code optimization path for certain transforms to avoid function calls when possible. If a 3d flat array of coordinates is to be transformed, and we know the transforms are "simple", we can pass it through proj4 using a simpler path that is faster. However, when an affine transform is specified, we can't use this simpler path.

@aashish24
Copy link
Member

Okay makes sense, thanks for the context

@manthey manthey merged commit 77c4021 into master Feb 25, 2021
@manthey manthey deleted the affine-transform-issue branch February 25, 2021 20:43
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.

2 participants