Wpolygon - ObjectVision/GeoDMS GitHub Wiki
Conversion functions wpolygon
- wpolygon(a)
wpolygon(a) converts the coordinates of a point item a with a sequence of points (arc or polygon) to the wpoint (uint16 coordinates) value type.
The result keeps the composition type of its argument: polygon stays polygon, arc stays arc, multipoint stays multipoint, as with convert.
- data item with Point value type and composition type arc or polygon
attribute<wpoint> wpolygonA (SDomain, polygon) := wpolygon(A);
| A(fpolygon) | wpolygonA |
|---|---|
| {2:xy(0; 0),xy(1; 1)} | {2:xy(0; 0),xy(1; 1)} |
| {3: {1E+007,1E+007},{-2.5,-2.5},{99.9,99.9}} | {3: {null,null},{null,null},xy(99; 99)} |