PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ WKTARRAY2LWGEOM()

static LWGEOM** WKTARRAY2LWGEOM ( char **  wkt_array,
size_t  num_geoms 
)
static

Definition at line 65 of file cu_geos_cluster.c.

66 {
67  size_t i;
68 
69  LWGEOM** lw_geoms = lwalloc(num_geoms * sizeof(LWGEOM*));
70 
71  for (i = 0; i < num_geoms; i++)
72  {
73  lw_geoms[i] = lwgeom_from_wkt(wkt_array[i], LW_PARSER_CHECK_NONE);
74  }
75 
76  return lw_geoms;
77 }
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
void * lwalloc(size_t size)
Definition: lwutil.c:229

References LW_PARSER_CHECK_NONE, lwalloc(), and lwgeom_from_wkt().

Referenced by do_dbscan_test(), perform_cluster_intersecting_test(), and perform_cluster_within_distance_test().

Here is the call graph for this function:
Here is the caller graph for this function: