PostGIS  2.5.2dev-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.

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().

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 }
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2004
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: