PostGIS  3.2.2dev-r@@SVN_REVISION@@

◆ array_nelems_not_null()

uint32_t array_nelems_not_null ( ArrayType *  array)

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

2790  {
2791  ArrayIterator iterator;
2792  Datum value;
2793  bool isnull;
2794  uint32_t nelems_not_null = 0;
2795  iterator = array_create_iterator(array, 0, NULL);
2796  while(array_iterate(iterator, &value, &isnull) )
2797  if (!isnull)
2798  nelems_not_null++;
2799 
2800  array_free_iterator(iterator);
2801 
2802  return nelems_not_null;
2803 }
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: