Upolygon - ObjectVision/GeoDMS GitHub Wiki
Conversion functions upolygon
- upolygon(a)
upolygon(a) converts the coordinates of a point item a with a sequence of points (arc or polygon) to the upoint (uint32 coordinates) value type.
Since GeoDms 20.15.1 the result keeps the composition type of its argument: polygon stays polygon, arc stays arc, multipoint stays multipoint (as convert does since 20.3.0, issue 1038). In earlier versions the result was always treated as arc, so casting a polygon data item made polygon-consuming operators such as bp_union_polygon warn about arc geometry.
- data item with Point value type and composition type arc or polygon
attribute<upoint> upolygonA (SDomain, polygon) := upolygon(A);
| A(fpolygon) | upolygonA |
|---|---|
| {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: xy(9999999; 9999999),{null,null},xy(99; 99)} |