PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rt_raster_is_empty()

int rt_raster_is_empty ( rt_raster  raster)

Return TRUE if the raster is empty.

i.e. is NULL, width = 0 or height = 0

Parameters
raster: the raster to get info from
Returns
TRUE if the raster is empty, FALSE otherwise

Definition at line 1240 of file rt_raster.c.

1240 {
1241 return (!raster || raster->height == 0 || raster->width == 0);
1242}
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition rtrowdump.py:125

Referenced by _rti_iterator_arg_populate(), RASTER_addBandOutDB(), RASTER_clip(), RASTER_dumpValues(), RASTER_getPixelCentroids(), RASTER_getPixelPolygons(), RASTER_isEmpty(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_nMapAlgebra(), RASTER_union_transfn(), rt_raster_colormap(), rt_raster_get_perimeter(), rt_raster_iterator(), rt_raster_surface(), rtpg_nmapalgebra_rastbandarg_process(), rtpg_union_noarg(), test_raster_empty(), and test_raster_from_band().

Here is the caller graph for this function: