py-gdalogr-cookbook
py-gdalogr-cookbook copied to clipboard
Typo. in world2pixel()?
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.