Skip to content

Geotiff visualization creates strange artifacts and does not handle correctly NaN #70

@sylar11

Description

@sylar11

Hi,
I created a series of collections where it is possible to visualise the geotiff but I'm experiencing strange behaviour in certain cases.

If you look here, for example, you can find a geotiff that is correctly displayed.
This geotiff has -999 as no data.

In other cases, my geotiff has NaN as no data value. In this case, the geotiff creates the artefacts as in this example

I tried using gdal to substitute the NaN with -999 with this command:

gdal_calc.py -A $tiff --outfile=$output_folder$output_tif_nan --calc="A*(A>0)" --NoDataValue=-999 --overwrite

and with gdalinfo it results that the image has -999 as no data but if I try using this new image it results in a black image like here

What is strange is that if I open the image with QGIS it is clear and the values are correct.

Could you please tell me if I'm doing something wrong or if it is a possible bug in the browser?

The images are all stored in an Amazon S3 bucket

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions