Working with Raster data
Get values from the pixels that intersect with a specific point
CALL CARTO.CARTO.RASTER_VALUES(
'my_database.my_schema.my_tablename',
ST_POINT(-6.61403, 37.47571),
'band_1',
'my_database.my_schema.my_output_table',
NULL
);
-- The table `my_database.my_schema.my_output_table` will be created
-- with columns: pixel, band_1 (one pixel intersecting the point)Get values from the pixels that intersect with points from a table
CALL CARTO.CARTO.RASTER_VALUES(
'my_database.my_schema.my_tablename',
'
SELECT id, point AS geom
FROM my_database.my_schema.my_geom_table
',
'
band_1 AS alias_1,
band_3 AS alias_2
',
'my_database.my_schema.my_output_table',
NULL
);
-- The table `my_database.my_schema.my_output_table` will be created
-- with columns: id, pixel, alias_1, alias_2 (one pixel intersecting each point)Get a calculated value from different bands for each pixel that intersects with points on table
Get all pixels that intersect with a polygon and their band's values
Intersect with a polygon table and get aggregated data
Last updated
Was this helpful?
