-
Notifications
You must be signed in to change notification settings - Fork 1
dms_split_polygon
MaartenHilferink edited this page Sep 6, 2026
·
1 revision
Geometric functions dms_split_polygon
- dms_split_polygon(polygon_data_item)
dms_split_polygon(polygon_data_item) splits every multi-polygon of the argument into its single polygons and results in a new uint32 domain unit with one entry per part. Each element is first read under the even-odd rule of the dms polygon operators family, so the argument does not have to be a valid polygon.
The result carries two subitems:
-
geometry: the single polygon of that part, with its holes -
polygon_rel: a relation towards the domain of polygon_data_item, the element the part came from
A part is one shell with the holes that lie in it. A polygon with a hole stays one part; two shells that touch in a single point are two.
- attribute polygon_data_item with a polygon value type: spoint, ipoint, wpoint, upoint, fpoint or dpoint
The composition type of the argument needs to be polygon.
20.20.0
unit<uint32> parts := dms_split_polygon(district/geometry)
{
attribute<ipoint> geometry;
attribute<district> polygon_rel;
}
- dms polygon operators - the family: the even-odd rule, the grid and what the result looks like
- dms_split_union_polygon - dissolve first, then split
- geos_split_polygon, bp_split_polygon, bg_split_polygon, cgal_split_polygon - the same operator on the geometry libraries
- dms_polygon - the clean-up, without splitting
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.