-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
ds.ReadAsArray
errors when xoff
, yoff
are numpy.int64
#8026
Labels
Comments
rouault
added a commit
to rouault/gdal
that referenced
this issue
Jul 4, 2023
… win_xsize, win_ysize, buf_xsize, buf_ysize arguments of ReadAsArray() (fixes OSGeo#8026)
rouault
added a commit
to rouault/gdal
that referenced
this issue
Jul 4, 2023
… win_xsize, win_ysize, buf_xsize, buf_ysize arguments of ReadAsArray() (fixes OSGeo#8026)
rouault
added a commit
to rouault/gdal
that referenced
this issue
Jul 5, 2023
… win_xsize, win_ysize, buf_xsize, buf_ysize arguments of ReadAsArray() (fixes OSGeo#8026)
jeffypooo
pushed a commit
to IgnisTechnologies/gdal
that referenced
this issue
Aug 9, 2023
… win_xsize, win_ysize, buf_xsize, buf_ysize arguments of ReadAsArray() (fixes OSGeo#8026)
scottstanie
added a commit
to scottstanie/MintPy
that referenced
this issue
Aug 15, 2023
This is fixed in gdal versions >3.7.0 OSGeo/gdal#8026 The issue came from passing `np.int64` objects to GDAL, which it wasnt handling properly. Regular python `int`s work find
Merged
5 tasks
scottstanie
added a commit
to insarlab/MintPy
that referenced
this issue
Aug 19, 2023
…pability (#1072) * utils0: fix typos * utils0: simplify look of `update_attribute_or_not` The bare `next` was acting as a `pass` or `continue` * fix more typos caught by vscode * use `ReadAsArray` after casting box to int This is fixed in gdal versions >3.7.0 OSGeo/gdal#8026 The issue came from passing `np.int64` objects to GDAL, which it wasnt handling properly. Regular python `int`s work find * remove unused import * gps: print the filename, instead of (possibly blank) dirname * convert `Path`s to str for readfile also fix grammar for file not found * remove 2nd version of wkt function
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior and actual behavior.
I can read chunks of rasters in python using integer start/offsets using
but this errors when
64
is actually a numpy integer.Steps to reproduce the problem.
testing on gdal installed from conda, version 3.7.0
(I created the test file with
drv.Create("test.tif", 128, 128, 1, gdal.GDT_Float32)
Operating system
Tested on both OSX and linux.
GDAL version and provenance
Tested on gdal 3.6.3, 3.6.4, 3.7.0 from conda forge.
The text was updated successfully, but these errors were encountered: