-
Notifications
You must be signed in to change notification settings - Fork 29
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
Confusing results #5
Comments
@jlouthan Is it possible that we use more than 8 source or destination points to transform? |
@sebastian-raubach Yeah, I have spent a while testing, and I think there's something pretty wrong. My testing was basically attempting to map a point in the middle of 4 points to the same 4 points - it should end up at the exact same location. But for many sets of numbers, it doesn't. I don't have a clear pattern for when it goes wrong. But posting some of my testing code here in case it's useful to someone.
|
I'm trying to use this library, but I get weird results that I can't really explain.
Using this code below:
Which when plotted looks like this:
I've got four corner points and a query point right in the center. I'm mapping this to a rectangle spanning (0,0) to (100, 100).
When I run this code, though, I get
[-144.37178139160187, -125.00368410330502]
, whereas it should be around[54.644979834216294, 45.89394897084863]
.Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: