-
Notifications
You must be signed in to change notification settings - Fork 1
bp_polygon
MaartenHilferink edited this page Jun 14, 2026
·
1 revision
Geometric functions > bp_polygon
- bp_polygon(polygon_data_item)
bp_polygon(polygon_data_item) results in a data item with the same domain as the polygon_data_item, with the geometry cleaned and validated using the Boost Polygon library. It can be used to repair or normalize polygon geometries.
The bp_ prefix of the function name indicates that the implementation of the operator uses the Boost Polygon library, which requires integer coordinates (ipoint or spoint).
- attribute polygon_data_item with a polygon value type with integer coordinates (ipoint or spoint)
- The composition type of the polygon_data_item needs to be polygon.
- The data item must have a point value type with integer coordinates (ipoint or spoint).
15.6.0
attribute<ipoint> geometry_clean (district) := bp_polygon(district/geometry);
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.