Rendering Transformation can cause bad rendering on reprojection to 3995

Description

I'm using the Jiffle rendering transformation to remove some pixels, and the result is then reprojected from 4326 to 3995.

The result of the reprojection with a style that uses the map algebra is different from the result of the reprojection without the map algebra. It looks like the resolution got lower.

Here is how it looks without the map algebra:

Here is how it looks with the map algebra:

In a multiband NetCDF file (attached) one band is used to decide whether or not render pixels from another band.
The Jiffle script is this:

A colormap is then applied; the full style is attached.
The layer preview image looks correct but when using different projections, artifacts come up.

To reproduce:

Environment

None

Assignee

Andrea Aime

Reporter

lorenzo.pini

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure