|
|
|
|
|
- Properties specific to Linestring2D variables
- Functions that use the Linestring2D type
Linestring2D (Variable type) In french: Polyligne2D
The Linestring2D type is used to define all the advanced characteristics of a linestring defined with 2D coordinates. You can define and change the characteristics of this 2D linestring using different WLanguage properties. Characteristics of a 2D linestring: A 2D linestring is a set of contiguous segments represented on a Cartesian plane. It is defined by a sequence of points. In mathematics, this is referred to as "polygonal chain". If the start and end points of a linestring are the same, the linestring is "closed". If the linestring does not self-intersect, the linestring is "simple". A simple and closed linestring is referred to as a "LinearRing". Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable. MyLine is Linestring2D
Linestring2DAddPoint(MyLine, 31, 21)
MyPoint is Point2D
MyPoint.X = 31
MyPoint.Y = 21
MyLine.Point.Add(MyPoint)
MyLine is Linestring2D
Linestring2DAddPoint(MyLine, 32, 22)
Linestring2DAddPoint(MyLine, 134, 12)
MyLine.AddPoint(32, 22)
MyLine.AddPoint(134, 12)
Properties Properties specific to Linestring2D variables The following properties can be used to manipulate a 2D linestring: | | | Property name | Type used | Effect |
---|
Point | Array of Point2D | Linestring points. | Type | Integer constant | Type of the current geometry. For a linestring defined with 2D coordinates, corresponds to the gtLinestring2D constant. Remark: Until version 2024 Update 2, this constant was named stLinestring2D.This property is available in read-only. |
Remarks Functions that use the Linestring2D type The following functions use Linestring2D variables:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|