This is the old version of our wiki. We advice to visit: https://www.geodms.nl

Arc2segm

From ObjectVision

Jump to: navigation, search

Geometric functions arc2segm(ent)

Contents

syntax

  • arc2segm(arc_polygon_dataitem)

definition

arc2segm(arc_polygon_dataitem) divides an arc or polygon data item arc_polygon_dataitem into segments.

The function results in a new domain unit with two subitems:

  1. point: a point data item with the first point of each segment;
  2. nextpoint: a point data item with the last point of each segment.

description

The arc2segm function is used to split up an arc geometry from which intermediates need to become nodes in a network.

applies to

data item arc_polygon_dataitem with fpoint or dpoint value type and composition type arc or polygon.

since version

5.15

example

unit<uint32> segments := arc2segm(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 nextpoint
{399246, 112631} {398599, 111866}
{398599, 111866} {399495, 111924}
{399495, 111924} {401801, 111524}
{401529, 114921} {398584, 114823}

domain segments, nr of rows = 4

Personal tools