PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ array_nelems_not_null()

static uint32_t array_nelems_not_null ( ArrayType *  array)
static

Definition at line 1838 of file postgis/lwgeom_geos.c.

1839 {
1840  ArrayIterator iterator;
1841  Datum value;
1842  bool isnull;
1843  uint32_t nelems_not_null = 0;
1844  iterator = array_create_iterator(array, 0, NULL);
1845  while(array_iterate(iterator, &value, &isnull))
1846  {
1847  if (!isnull)
1848  nelems_not_null++;
1849  }
1850 
1851  array_free_iterator(iterator);
1852 
1853  return nelems_not_null;
1854 }
int value
Definition: genraster.py:62

References genraster::value.

Referenced by cluster_within_distance_garray(), clusterintersecting_garray(), and polygonize_garray().

Here is the caller graph for this function: