-
Notifications
You must be signed in to change notification settings - Fork 59
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
TiledRasterLayer count fails on combined multiband raster bands #677
Comments
Thanks for bringing this to our attention, @phloem7! If you can, could you post the full stacktrace?
|
Thanks for looking into this, @jbouffard. Here's the full stacktrace:
|
Hey, @phloem7! After doing some investigation, it looks like there's something wrong with the rdd = gps.geotiff.get(gps.LayerType.SPATIAL, tif)
bands = rdd.bands([1, 2, 3]) The above code should do what you're looking for. I'll keep looking into the |
The following fails using combined bands from a multiband geotiff, but succeeds with singleband jp2 files.
Error (can provide more thorough traceback if useful):
I suspect there is some difference in how the underlying RDDs are treated/disposed of when
self.srdd.rdd().count()
is called in the count method. The files appear to be tiled properly in both cases. For example, I get the correct tile count using:The text was updated successfully, but these errors were encountered: