ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / Managing databases / HFSQL / 
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
Calculates the area of a given geometry.

Example
APolygon is Polygon2D = GeometryDeserializeWKT2D("POLYGON((0 0, 10 75,20 85, 25 12, 0 0))")
Area is real = GeometryArea(APolygon)
Syntax
<Result> = GeometryArea(<Geometry used>)
<Result>: Real
  • Area of the geometry.
    • In 2D coordinates: If the program uses meters, the result will be expressed in square meters.. If the program uses miles, the result will be in square miles.
    • In geographic coordinates (latitude, longitude), the area is expressed in square meters.
    If the geometry is a collection of geometries, the result will be the sum of the areas of the different geometries.
  • 0 if the area of the geometry cannot be calculated.
If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo with the errMessage constant. The unit of the area is the square of the unit used to define the points of the geometry.
<Geometry used>: Variable containing spatial data
Variable corresponding to the geometry. Geometries can be variables of the following types: Remark: Area can be calculated for polygon and/or multipolygon geometries. In other cases, <Résultat> will be 0.
Business / UI classification: Business Logic
Component: wd290hf.dll
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