ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / Managing databases / HFSQL / 
  • Properties specific to PointGeo variables
  • Functions that use the PointGeo 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 PointGeo type is used to define all the advanced characteristics of location represented on the spheroidal surface of the earth.
This location is based on an approximation of the surface of the earth, in geographic coordinates (latitude and longitude).
Calculations on geographic coordinates use the WG S84 system, a spatial reference system mainly used in GPS: therefore, geographic points can be considered "GPS points".
You can define and change the characteristics of this geographic location using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Declare a geographic point
p is GeoPoint
p.Latitude = 26.152
p.Longitude = 63.2101221

// Display the point as a string
Trace(GeometrySerializeWKT(p))

// Result: "POINT(63.2101221 26.152)"
// Caution: in WKT format, longitude is specified before latitude
Properties

Properties specific to PointGeo variables

The following properties can be used to manipulate a variable of type PointGeo:
Property nameType usedEffect
LatitudeRealLatitude of the point. Angle between the point and the equator.
LongitudeRealLatitude of the point. Angle between the point and the Greenwich meridian.
Latitude is a value between -180 (excluded) and +180 (included) degrees.
TypeInteger constantType of the current geometry. For a point defined with geographic coordinates, corresponds to the gtPointGeo constant.
Remark: Until version 2024 Update 2, this constant was named stPointGeo.
This property is available in read-only.
Remarks

Functions that use the PointGeo type

The following functions use PointGeo 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