Raster
Last updated
Was this helpful?
Last updated
Was this helpful?
In CARTO Builder, the Raster layer visualization option allows you to render and style raster data such as such as deforestation patterns, land classifications, or flood risk models, directly on your map.
You can also use Visibility by zoom level to define the range of zoom levels at which your layer will be displayed. This ensures your map remains relevant by showing layers only at the appropriate scales.
A raster layer can be styled in the following manners:
Color Range: Ideal for continuous data like elevation or temperature ranges.
Unique: Best for categorical data such as land use classification or vegetation types.
RGB: Suitable for visualizing satellite imagery sources to obtain true-color or false-color composite.
Color Range allows you to style a band by different ranges. The Color Range will be used by default if you have 'Grey' as the Color Interpreter in your raster metadata band. Learn more about Color Interpreter here.
Quantiles color scale is available only if the quantile
stat has been added to the specific band during the raster-loader process.
Unique style allows you to style discrete numeric bands using unique color values. The Unique style will be used by default if you have 'Palette' as the Color Interpreter by default. Learn more about Color Interpreter here.
Unique style is only available for rasters containing at least a discrete numeric band containing top_values
stat in the raster band metadata.
RGB styles allows you to assign bands to the red
, green
and blue
channel spectrum. The RGB style will be used by default when red, green and blue bands are color interpreter in the metadata. Learn more about Color Interpreter here.
Here you can select specific bands as well as adding your own custom expressions. To add a custom expression, simply type in the selector menu the expression you want to add. You must ensure the syntax is correct before adding an expression.
If your original raster includes a Color Interpreter, this will be respected during the uploading process and will be used by default to style your raster layer in CARTO Builder. The current Color Interpreter types supported, based on GDAL data model, are as follows:
Palette: For discrete numeric bands, the Unique style will be applied by default. This type supports a Color Table, which defines the relationship between numeric values and colors.
Gray: For bands with a gray interpreter, a grayscale palette is applied using the Color Range and Quantize color scale for smoother visualization.
Red, Green, and Blue (RGB): When bands are interpreted as red, green, and blue, the RGB style is used by default. Each band is assigned to the corresponding red, green, or blue channel to render a composite image.
CARTO Builder will not render any pixels assigned the No Data Value for each band. For example, if the no data value for a specific band is set to 0
, any pixels with this value will not appear in the visualization.
For RGB rasters, the no data value must match across all three bands (red, green, and blue) for a pixel to be ignored. For instance, if the no data values are set to 0
for these bands, the corresponding pixel will be excluded from rendering only when all three bands have a value of 0
.
Learn more about data preparation and no data value assignment in this section.
Within the Advanced Visualization Options , you can control the opacity of your raster layer, allowing you to blend it seamlessly with other layers on your map for improved visual clarity.