Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tile_blocksize() may fail with multi-layer rasters #87

@Aariq

Description

@Aariq

https://github.com/njtierney/geotargets/blob/ea1f9fe737ebcc64a9e6bd88f589e7554e87f17f/R/tar_terra_tiles.R#L289C5-L289C76

Not sure how I missed this, but getTileExtents() expects 1 or 2 numbers and fileBlocksize() appears to return two number per layer as a matrix. Need to add a test to confirm and then fix this.

Would the blocksize ever differ among layers of the same raster? Seems like they shouldn't, since they are required to have the same resolution and projection. If that is true, I'll just take the first row.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingterrarelated to compatibility with `terra`

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions