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

Do not fail on null transformedArray #332

Merged
merged 1 commit into from
Nov 16, 2019
Merged

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Nov 8, 2019

When a forward or inverse transform fails, it returns null. But our core transformer does not handle that.

By setting the x and y coordinates to NaN in such cases, we can successfully handle such conversions, and the consumer still knows that something went wrong by looking at the x and y.

This also fixes openlayers/openlayers#10267.

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.

Raster reprojection example does not work
1 participant