|
|
|
|
GeometryArea (Function) In french: GéométrieAire Calculates the area of a given geometry.
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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|