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

◆ WKTARRAY2LWGEOM()

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

Definition at line 67 of file cu_geos_cluster.c.

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

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: