bg_simplify_linestring - ObjectVision/GeoDMS GitHub Wiki
Geometric functions bg_simplify_linestring
- bg_simplify_linestring(arc_data_item, simplifyfactor)
bg_simplify_linestring(arc_data_item, simplifyfactor) results in a data item with the geometry of the arc_data_item, in which the geometric structure is simplified. Near points are combined to a single point. What is near is configured with the simplifyfactor, a parameter indicating for which distance points are combined. No metric needs to be configured for the simplifyfactor, it is using the metric of the coordinate system.
The bg_ prefix of the function name indicates that the implementation of operator uses boost geometry library, more specifically, the simplify function.
- attribute arc_data_item with an point value type
- parameter simplifyfactor with a float64 value type
- The composition type type of the arc_data_item item needs to be arc.
- The order of points in the arc_data_item needs to be clockwise for exterior bounds and counter clockwise for holes in polygons (right-hand-rule).
8.031
attribute<fpoint> geometry_simplified (polygon, district) := bg_simplify_linestring(road/geometry, 10.0);