PostGIS  2.2.7dev-r@@SVN_REVISION@@
uint32_t array_nelems_not_null ( ArrayType *  array)

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

References genraster::value.

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

3213  {
3214  ArrayIterator iterator;
3215  Datum value;
3216  bool isnull;
3217  uint32_t nelems_not_null = 0;
3218 
3219 #if POSTGIS_PGSQL_VERSION >= 95
3220  iterator = array_create_iterator(array, 0, NULL);
3221 #else
3222  iterator = array_create_iterator(array, 0);
3223 #endif
3224  while(array_iterate(iterator, &value, &isnull) )
3225  {
3226  if (!isnull)
3227  {
3228  nelems_not_null++;
3229  }
3230  }
3231  array_free_iterator(iterator);
3232 
3233  return nelems_not_null;
3234 }

Here is the caller graph for this function: