ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / Managing databases / HFSQL / 
  • Properties specific to Point2D variables
  • Functions that use the Point2D 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 Point2D type is used to define all the characteristics of a location represented on a Cartesian plane. This type of point is used to define geometric data that uses 2D coordinates.
When you manipulate geometric data, all geometries use points:
  • linestrings are made up of a series of connected points,
  • polygons are made up of linestrings: one linestring defining the exterior ring and other linestrings defining the holes, if any.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Declaring a point using 2D coordinates
p is Point2D
p.X = 3
p.Y = 12

// Display the point as a string
Trace(GeometrySerializeWKT(p))
// Displays: "POINT(3 12)"
Properties

Properties specific to Point2D variables

The following properties can be used to manipulate a variable of type Point2D:
Property nameType usedEffect
TypeInteger constantType of the current geometry. For a point defined with 2D coordinates, corresponds to the gtPoint2D constant.
Remark: Until version 2024 Update 2, this constant was named stPoint2D.
This property is available in read-only.
XRealX-coordinate of the point on the Cartesian plane.
YRealY-coordinate of the point on the Cartesian plane.
Remarks

Functions that use the Point2D type

The following functions use Point2D 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
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/23/2024

Send a report | Local help