Skip to content

sits_reclassify assumes mask has only a single tile when it can have multiple #1480

@rolfsimoes

Description

@rolfsimoes

Describe the bug

The sits_reclassify() function assumes that the mask parameter contains only a single tile. When the mask has multiple tiles that intersect with the bounding box of a tile being processed, only the first tile is used, causing incorrect reclassification results.

Additional context

The issue occurs in the .recl_labels_tile() function in api_reclassify.R, line 96, where .tile(mask) is called. The .tile.raster_cube() function returns only the first tile of a cube.

The function should process each mask tile separately.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions