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

Typo. in world2pixel()? #164

Open
tbnorth opened this issue Jul 27, 2016 · 0 comments
Open

Typo. in world2pixel()? #164

tbnorth opened this issue Jul 27, 2016 · 0 comments

Comments

@tbnorth
Copy link

tbnorth commented Jul 27, 2016

At clip-a-geotiff-with-shapefile

  pixel = int((x - ulX) / xDist)
  line = int((ulY - y) / xDist)

Shouldn't that second xDist be yDist? Of course they're almost always equal, so the above will usually work.

Thanks for the great resource.

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

No branches or pull requests

1 participant