sequence2points - ObjectVision/GeoDMS GitHub Wiki
Geometric functions sequence2points
- sequence2points(arc_polygon_data_item)
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 unit of the arc_polygon_data_item
- Ordinal: a uint32 data item with the order of each point in the arc_polygon_data_item
data item arc_polygon_data_item with fpoint or dpoint value type and composition type arc or polygon.
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