Skip to content

Raster styling: Add support for Band Arithmetic / Math Expression to multi-bands raster #7665

@jo-chemla

Description

@jo-chemla

Feature Request

The same way vector or WMTS sources style can be edited (or selected), it could be very useful for remote COG added as Web Data (via a remote endpoint) to have a user-configurable style.

There are not a lot of platforms/webmap tools, to my knowledge, that take advantage of COG tiling structure to do on-the-fly indices computation like NDVI for MS Multispectral COG. Letting the user load a raster on Terriajs, and apply custom raster style would be great! Akin to a on-the-fly raster calculator with band arithmetic or math expression support, the below could be nice:

  • set custom band interpretation (custom band for R, G, B channels)
  • custom min/max stretching
  • and eventually apply math expressions

Similar alternatives

Existing tooling with similar feature-set

Potentially linked/similar issues:


On a side-note, would anyone have any idea why these COGs (RGB, DSM) won't get imported by terriajs? Seems that I'm getting a bunch of errors like Invalid or unsupported photometric interpretation or An error occurred in "U": Failed to obtain image tile X: 0 Y: 0 Level: 0. I saw in changelog, Add support for Cloud Optimised Geotiff (cog) in Cesium mode. Currently supports EPSG 4326 and 3857. There is experimental support for other projections but performance might suffer and there could be other issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Community IssueAn issue raised by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions