PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ array_nelems_not_null()

uint32_t array_nelems_not_null ( ArrayType *  array)

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

2872  {
2873  ArrayIterator iterator;
2874  Datum value;
2875  bool isnull;
2876  uint32_t nelems_not_null = 0;
2877  iterator = array_create_iterator(array, 0, NULL);
2878  while(array_iterate(iterator, &value, &isnull) )
2879  if (!isnull)
2880  nelems_not_null++;
2881 
2882  array_free_iterator(iterator);
2883 
2884  return nelems_not_null;
2885 }
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: