-
Notifications
You must be signed in to change notification settings - Fork 1
bp_buffer_multi_point
Geometric functions > bp_buffer_multi_point
- bp_buffer_multi_point(multipoint_data_item, buffer_distance, nrPointsInCircle)
bp_buffer_multi_point(multipoint_data_item, buffer_distance, nrPointsInCircle) creates a buffer polygon around each coordinate of the multipoint_data_item. The result is a polygon data item with the same domain as the multipoint_data_item.
The buffer_distance is a value that specifies the radius of the buffer circles in the units of the coordinate system.
The nrPointsInCircle is a UInt8 value that specifies the number of points used to approximate each circle. A higher value results in a smoother buffer but increases computation time. The minimum value is 3.
The bp_ prefix of the function name indicates that the implementation of the operator uses the Boost Polygon library, which requires integer coordinates.
- attribute multipoint_data_item with a point value type with integer coordinates (ipoint or spoint) and multipoint composition
- parameter buffer_distance with an integer value type
- parameter nrPointsInCircle with a UInt8 value type
- The composition type of the multipoint_data_item needs to be multipoint.
- The data item must have a point value type with integer coordinates (ipoint or spoint).
- buffer_distance must be a positive value.
- nrPointsInCircle must be at least 3.
This function results in problems for (integer) coordinates larger than 2^25 (after translation where the first point is moved to (0, 0)). If your integer coordinates, for instance, represent mm, 2^25[mm] = about 33 [km]. We advise you to keep the size of your integer coordinates limited.
Since version 20.2.0 the first argument is expected to have multipoint composition type. Passing an arc or polygon attribute is deprecated: it still works but produces a deprecation warning, and is slated to become an error in a future major version. Construct genuine multipoint geometry with points2multi_point. Before 20.2.0 this operator accepted arc or polygon geometry (their coordinates were treated as a set of points).
15.7.3
attribute<ipoint> points (district, multipoint) := points2multi_point(point, Sequence_rel, ordinal);
attribute<ipoint> buffer_geometry (district, polygon) := bp_buffer_multi_point(points, 25i, 8b);
- bp_buffer_multi_polygon
- bp_buffer_linestring
- geos_buffer_multi_point
- bg_buffer_multi_point
- cgal_buffer_multi_point
- points2multi_point - construct multipoint geometry
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.