PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ array_nelems_not_null()

uint32_t array_nelems_not_null ( ArrayType *  array)

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

2701 {
2702 ArrayIterator iterator;
2703 Datum value;
2704 bool isnull;
2705 uint32_t nelems_not_null = 0;
2706 iterator = array_create_iterator(array, 0, NULL);
2707 while(array_iterate(iterator, &value, &isnull) )
2708 if (!isnull)
2709 nelems_not_null++;
2710
2711 array_free_iterator(iterator);
2712
2713 return nelems_not_null;
2714}
int value
Definition genraster.py:62

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

Here is the caller graph for this function: