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

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

References genraster::value.

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

2824  {
2825  ArrayIterator iterator;
2826  Datum value;
2827  bool isnull;
2828  uint32_t nelems_not_null = 0;
2829 
2830 #if POSTGIS_PGSQL_VERSION >= 95
2831  iterator = array_create_iterator(array, 0, NULL);
2832 #else
2833  iterator = array_create_iterator(array, 0);
2834 #endif
2835  while(array_iterate(iterator, &value, &isnull) )
2836  {
2837  if (!isnull)
2838  {
2839  nelems_not_null++;
2840  }
2841  }
2842  array_free_iterator(iterator);
2843 
2844  return nelems_not_null;
2845 }
unsigned int uint32_t
Definition: uthash.h:78

Here is the caller graph for this function: