PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ state_combine()

void state_combine ( UnionState state1,
UnionState state2 
)
static

Took out to prevent crash https://trac.osgeo.org/postgis/ticket/5371

Definition at line 241 of file lwgeom_union.c.

242 {
243  List *list1;
244  List *list2;
245 
246  assert(state1 && state2);
247 
248  list1 = state1->list;
249  list2 = state2->list;
250 
251  if (list1 != NIL && list2 != NIL)
252  {
253  state1->list = list_concat(list1, list2);
255  //list_free(list2);
256  state1->size += state2->size;
257  }
258  else if (list2 != NIL)
259  {
260  state1->gridSize = state2->gridSize;
261  state1->list = list2;
262  state1->size = state2->size;
263  }
264  state2->list = NIL;
265 }
List * list
Definition: lwgeom_union.h:10
int32 size
Definition: lwgeom_union.h:11
float8 gridSize
Definition: lwgeom_union.h:9

References UnionState::gridSize, UnionState::list, and UnionState::size.

Referenced by pgis_geometry_union_parallel_combinefn().

Here is the caller graph for this function: