Sequence2points
From ObjectVision
(Difference between revisions)
(→example) |
(→see also) |
||
Line 74: | Line 74: | ||
== '''see also''' == | == '''see also''' == | ||
* [[points2sequence]] | * [[points2sequence]] | ||
+ | *[[arc2segm]] |
Current revision as of 12:15, 31 July 2020
Geometric functions sequence2points
Contents |
syntax
- sequence2points(arc_polygon_data_item)
definition
sequence2points(arc_polygon_data_item) results in a new domain unit with all points from the arcs/polygons of the arc_polygon_data_item
The function generates three subitems:
- Point: a data item with the points of all arcs/polygons of the arc_polygon_data_item
- SequenceNr: a relation towards the domain of the arc_polygon_data_item
- Ordinal: a uint32 data item with the order of each point in the arc_polygon_data_item
applies to
data item arc_polygon_data_item with fpoint or dpoint value type and composition type arc or polygon.
since version
5.15
example
unit<uint32> RoadPointSet := sequence2points(road/geometry);
road/geometry |
{2 {399246, 112631}{398599, 111866}} |
{3 {398599, 111866}{399495, 111924} {401801,111524}} |
{2 {401529, 114921}{398584, 114823}} |
domain Road, nr of rows = 3
point | SequenceNr | Ordinal |
{399246, 112631} | 0 | 0 |
{398599, 111866} | 0 | 1 |
{398599, 111866} | 1 | 0 |
{399495, 111924} | 1 | 1 |
{401801, 111524} | 1 | 2 |
{401529, 114921} | 2 | 0 |
{398584, 114823} | 2 | 1 |
domain RoadPointSet, nr of rows = 7