bg_split_union_polygon
geometric-functions bg_split_union_polygon
syntax
- bg_split_union_polygon(polygon_data_item)
- bg_split_union_polygon(polygon_data_item, relation)
description
bg_split_union_polygon(polygon_data_item, relation) results in a new uint32 domain-unit with single polygons for each (multi)polygon in the polygon_data_item argument, and also dissolves over the relation.
conditions
- The composition type of the polygon_data_item argument needs to be polygon with an ipoint, spoint, fpoint, or dpoint value-type.
- The domain unit of the polygon_data_item argument must be of value type uint32.
function type
- bg_split_union_polygon(D->P)-> S { geometry: S->P }
- bg_split_union_polygon(D->P, part_rel:D->R)-> S { geometry: S->P, part_rel->S->R }
where P is a GeoDms point type with signed integer coordinates, i.e. 16, 32, or 64-bit signed integers. S is the resulting uint32 set of split polygons, D is the domain of the argument, and R is the values unit of the partitioning part_rel.
since version
15.6.0
example
unit<uint32> split_dissolve := bg_split_union_polygon(multipolygon/geometry);
unit<uint32> split_dissolve := bg_split_union_polygon(multipolygon/geometry, multipolygon/regio_rel));