Skip to content

Can't get_raster_layer from a GeoTiff with Bind type with Int16 or Float16 #89

@cyberpsyche

Description

@cyberpsyche

I have a GeoTiff with only 1 Band and the Band type is Int16. If I execute img = Geodot.get_raster_layer("the_geo.tif") it cannot get a valid GeoRasterLayer even if the result of img.is_valid() if true. I have to translate the GeoTiff file to Band type Float32, then the execution will succeed.

But change the band type from Int16 to Float32 will make the Tiff file twice bigger. How can I do to handle this problem?

Thanks for your help !

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