Skip to content

Adding filters to raster layers #9

@geohacker

Description

@geohacker

Filtering raster layers using expressions in Mapbox GL is currently unsupported. There's a discussion on Mapbox GL repo about raster-colorize but that hasn't really found a place on their roadmap.

I'm capturing some of the options we discussed so far:

  1. If we want to use the raster files as is, we might want to serve them as COGs but this means setting up a separate tile server.
  2. Try something like https://github.com/kylebarron/deck.gl-raster — but this is really experimental
  3. Turn the rasters into vectors like a 50m - 100m tile grid that can visualize the population density, for example like: https://sedac.ciesin.columbia.edu/data/set/gpw-v3-population-density/maps

I personally think we should use option 3. Could we use https://github.com/mapbox/rio-mbtiles?

cc @AliceR @sharkinsspatial @vincentsarago

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