|
|
|
|
|
<Polygon2D variable>.Union (Function) In french: <Variable Polygone2D>.Union Returns a geometry corresponding to the union between a 2D polygon and another geometry.  Input A and B geometries  Union result Note: If the type of the geometries passed as parameters is known, then the type of the result is also pre-determined. Most geospatial applications don't support columns with heterogeneous data (points, lines or polygons within a single item of type "Geometry"), so there's generally no need to check the type of geometry returned by the function. o2DPolygon_1 is Polygon2D
o2DPolygon_1.Outline.AddPoint(2.00, 2.00)
o2DPolygon_1.Outline.AddPoint(2.00, -2.00)
o2DPolygon_1.Outline.AddPoint(-2.00, -2.00)
o2DPolygon_1.Outline.AddPoint(-2.00, 2.00)
o2DPolygon_1.Outline.AddPoint(2.00, 2.00)
o2DPolygon_1 = o2DPolygon_1.Correct()
o2DPolygon_2 is Polygon2D
o2DPolygon_2.Outline.AddPoint(3.00, 1.00)
o2DPolygon_2.Outline.AddPoint(3.00, -1.00)
o2DPolygon_2.Outline.AddPoint(1.00, -1.00)
o2DPolygon_2.Outline.AddPoint(1.00, 1.00)
o2DPolygon_2.Outline.AddPoint(3.00, 1.00)
o2DPolygon_2 = o2DPolygon_2.Correct()
symmetric_difference is MultiPolygon2D = o2DPolygon_1.Union(o2DPolygon_2)
Syntax
<Result> = <Geometry A>.Union(<Geometry B>)
<Result>: Variable of type MultiPoint2D, MultiPointGeo, MultiLinestring2D, MultiLinestringGeo, MultiPolygon2D or MultiPolygonGeo Union result. This geometry contains a collection of geometries of a given type: If the union between two geometries consists of a single element, the collection will contain a single element. If the union is empty (e.g., union of two empty multipolygons), the collection will be empty. If the result of the union is disjoint (e.g. union of two disjoint geometries), the collection will contain several elements. <Geometry A>: Polygon2D variable Name of the Polygon2D variable to be used. <Geometry B>: Variable containing spatial data Second geometry taken into account for the union. This geometry can correspond to one of the following variable types: Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|