PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ LWGEOMARRAY2GEOS()

static GEOSGeometry** LWGEOMARRAY2GEOS ( LWGEOM **  lw_array,
size_t  num_geoms 
)
static

Definition at line 39 of file cu_geos_cluster.c.

References lwalloc(), and LWGEOM2GEOS().

Referenced by perform_cluster_intersecting_test().

40 {
41  size_t i;
42  GEOSGeometry** geos_geoms = lwalloc(num_geoms * sizeof(GEOSGeometry*));
43 
44  for (i = 0; i < num_geoms; i++)
45  {
46  geos_geoms[i] = LWGEOM2GEOS(lw_array[i], 0);
47  }
48 
49  return geos_geoms;
50 }
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, int autofix)
void * lwalloc(size_t size)
Definition: lwutil.c:229
Here is the call graph for this function:
Here is the caller graph for this function: