PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ array_nelems_not_null()

uint32_t array_nelems_not_null ( ArrayType *  array)

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

2762  {
2763  ArrayIterator iterator;
2764  Datum value;
2765  bool isnull;
2766  uint32_t nelems_not_null = 0;
2767  iterator = array_create_iterator(array, 0, NULL);
2768  while(array_iterate(iterator, &value, &isnull) )
2769  if (!isnull)
2770  nelems_not_null++;
2771 
2772  array_free_iterator(iterator);
2773 
2774  return nelems_not_null;
2775 }
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: