Working with Raster data
Get values from the pixels that intersect with a specific point
CALL `carto-un`.carto.RASTER_VALUES(
'my-project.my-dataset.my-raster-table',
'''SELECT ST_GEOGPOINT(-6.61403, 37.47571) AS geom'''
'band_1',
NULL,
NULL
);
-- The table `my-project.my-dataset.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-un`.carto.RASTER_VALUES(
'my-project.my-dataset.my-raster-table',
'''
SELECT id, point AS geom
FROM `my-project.my-dataset.my-point-table`
''',
'''
band_1 AS alias_1,
band_3 AS alias_2
''',
'my-project.my-dataset.my-output-table',
NULL
);
-- The table `my-project.my-dataset.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?
