logo-header

 
 

syntax

  • sequence2points(seq)

definition

sequence2points(seq) results in a new domain unit, with three generated subitems (see description). Each sequence seq is split up into the pointset of the sequence. 

description

Three subitems of the new unit are generated by the function:

  • point: a data item with the points of all sequences;
  • SequenceNr: a data item with the index number of the sequence;
  • Ordinal: a uint32 data item containing the order number of each point in a sequence.

applies to

Point data item seq with fpoint or dpoint value type and with 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

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904