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

◆ array_nelems_not_null()

static uint32_t array_nelems_not_null ( ArrayType *  array)
static

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

1840{
1841 ArrayIterator iterator;
1842 Datum value;
1843 bool isnull;
1844 uint32_t nelems_not_null = 0;
1845 iterator = array_create_iterator(array, 0, NULL);
1846 while(array_iterate(iterator, &value, &isnull))
1847 {
1848 if (!isnull)
1849 nelems_not_null++;
1850 }
1851
1852 array_free_iterator(iterator);
1853
1854 return nelems_not_null;
1855}
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: