ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / Managing databases / HFSQL / 
  • Properties specific to Linestring2D variables
  • Functions that use the Linestring2D type
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
Example
MyLine is Linestring2D

// Add points to linestring
// 1. Standard syntax 
Linestring2DAddPoint(MyLine, 31, 21)
// 2. Prefix syntax
MyPoint is Point2D
MyPoint.X = 31
MyPoint.Y = 21 
MyLine.Point.Add(MyPoint)
MyLine is Linestring2D

// Add points to linestring
// 1. Standard syntax
Linestring2DAddPoint(MyLine, 32, 22)
Linestring2DAddPoint(MyLine, 134, 12)

// 2. Prefix syntax
MyLine.AddPoint(32, 22)
MyLine.AddPoint(134, 12)
Properties

Properties specific to Linestring2D variables

The following properties can be used to handle a 2D linestring:
Property nameType usedEffect
PointArray of Point2DLinestring points.
TypeInteger constantType 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:
New in version 2024
EqualForm
Finds out whether two Geometry s are spatially equal, i.e. whether the first Geometry is included in the second, and whether the second is included in the first.
New in version 2024
FormDisjoint
Determines whether two geometries are disjoint, i.e. whether their intersection is empty.
New in version 2024
FormIsValid
Checks whether the specified Geometry is valid within the meaning of the OGC standard.
New in version 2024
FormSerializeWKT
Serialize an Geometry in Well Known Text (WKT) format.
New in version 2024
FormUnion
Returns the Geometry Receiver corresponding to the union between two Geometry s.
New in version 2024
GeometryArea
Calculates the area of a given geometry.
New in version 2024
GeometryContain
Determines if geometry A contains geometry B.
New in version 2024
GeometryConvexHull
Calculates the convex hull of the specified geometry.
New in version 2024
GeometryCorrect
Returns a corrected version of the specified geometry.
New in version 2024
GeometryCover
Determines if geometry A covers geometry B.
New in version 2024
GeometryCoveredBy
Permet de savoir si tout point de la forme A se trouve à l'intérieur ou dans le contour de la forme B. C'est équivalent à renvoyer vrai s'il n'existe aucun point de A dans l'extérieur de B.
New in version 2024
GeometryCross
Compares two geometries and determines if their intersection spatially crosses.
New in version 2024
GeometryDifference
Returns a geometry representing the difference between two geometries.
New in version 2024
GeometryDistance
Calcule la distance entre deux formes. Pour les formes autres que les points, cette distance correspond à la distance entre les points les plus proches que l'on puisse trouver entre les deux formes.
Pour les formes 2D, calcule la distance en utilisant la norme euclidienne (Pythagore). La distance est renvoyée dans la même unité que celle donnée aux coordonnées des points.
Pour les formes géographiques, utilise le modèle approché de la Terre WGS84 pour prendre en compte sa courbure. La distance est renvoyée en mètres.
New in version 2024
GeometryIntersect
Checks whether two geometries have a non-empty intersection.
New in version 2024
GeometryIntersection
Returns a geometry representing the intersection of two geometries.
New in version 2024
GeometryOverlap
Determines whether two geometries overlap.
New in version 2024
GeometrySerializeDSV
Sérialise une forme géométrique en utilisant le format DSV spécifié. Ce format permet de choisir quels éléments textuels séparent les différents éléments géométriques dans le texte.
Important : la chaîne renvoyée par cette fonction est TOUJOURS une chaîne ANSI ne pouvant contenir que des caractères ASCII. Il en va de même des séparateurs, qui doivent tous être des chaînes ANSI avec seulement des caractères ASCII.
New in version 2024
GeometryTouch
Renvoie vrai si les deux formes se touchent.
Deux formes se touchent si les contours des deux formes ont une intersection, mais que les intérieurs n'ont *pas* d'intersection. Deux formes se touchent si elles ont un point ou un segment de leurs contours en commun.
Voir les images ci-dessous pour un exemple de chacune des trois situations.
New in version 2024
GeometryWithin
Renvoie vrai si la forme A est complètement dans la forme B, c'est-à-dire que B contient complètement A. En détail : - Il n'existe pas de point de A dans l'extérieur de B : tout point de A est soit dans l'intérieur de B, soit dans son contour. - Il existe au moins un point de l'intérieur de A dans l'intérieur de B.
New in version 2024
PerimeterForm
Calculates the perimeter of a given Geometry (Polygon or multiPolygon).
New in version 2024
Polyligne2DAjoutePoint
Adds a new point to a 2-dimensional polyline (geometric polyline).
New in version 2024
ShapeLength
Calculate the length of a given Geometry.
New in version 2024
SymmetricDifferenceForm
Calculate the symmetrical difference between two geometries.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/24/2024

Send a report | Local help