arc to segments
- Details
- Last Updated on Wednesday, 23 January 2013 20:23
syntax
-
arc2segm(a)
definition
arc2segm(a) divides a sequence (arc or polygon) data item a into segments. The function results in a new domain unit with two subitems:
- point: a point data item with the first point of each segment;
- nexpoint: a point data item with the last point of each segment.
description
If a source arc data item contains intermediates, which need to become nodes in a network, the source item need to be divided into segments. Use the arc2segm function for this purpose.
applies to
Point data item with value types:
- FPoint
- DPoint
The composition type of the point data items is arc or polygon.
since version
5.15
example
unit<uint32> segments: expr = "arc2segm(road/line)";
| road/line |
| {2 {399246, 112631}{398599, 111866}} |
| {3 {398599, 111866}{399495, 111924} {401801, 111524}} |
| {2 {401529, 114921}{398584, 114823}} |
| point | nextpoint |
| {399246, 112631} | {398599, 111866} |
| {398599, 111866} | {399495, 111924} |
| {399495, 111924} | {401801, 111524} |
| {401529, 114921} | {398584, 114823} |