|
|
|
|
|
- Properties specific to Geometry variables
- Functions that use the Geometry type
Geometry (Variable type) In french: Geometry
The Geometry type can be used to store any type of geometry: point, polygon, etc. This means that any WLanguage function that can return a point or polygon depending on its parameters, can have a variable of type Geometry as return value. Once declared, Geometry variables are empty until a value is assigned to them. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
f is Geometry()
f = GetPoint()
p is Point2D = f
f is Geometry
IF f.Type = gtPoint2D THEN
my2DPoint is Point2D
my2DPoint = f
END
point is Point2D
linestring is Linestring2D
f is Geometry
f = point
f = linestring
f = GetGeometry()
IF f.Type = gtPolygonGeo THEN
polygon is PolygonGeo
polygon = f
END
UnknownGeometry is Geometry
UnknownGeometry = GetUnknownGeometry()
SWITCH UnknownGeometry.Type
CASE gtPoint2D:
CASE gtLinestring2D:
CASE gtPolygon2D:
OTHER CASE:
END
Properties Properties specific to Geometry variables The following properties can be used to manipulate a variable of type Geometry: | | | Property name | Type used | Effect |
---|
Type | Integer constant | Type of the current geometry: - gtInvalid: Invalid type.
Note: Until version 2024 Update 2, this constant was named stInvalid. - gtGeometryCollection: Collection of geometries.
Note: Until version 2024 Update 2, this constant was named stShapeCollection. - gtMultiPoint2D: Collection of 2D points.
Note: Until version 2024 Update 2, this constant was named stMultiPoint2D. - gtMultiPointGeo: Collection of geographic points.
Note: Until version 2024 Update 2, this constant was named stMultiPointGeo. - gtMultiPolygon2D: Collection of 2D polygons.
Note: Until version 2024 Update 2, this constant was named stMultiPolygon2D. - gtMultiPolygonGeo: Collection of geographic polygons.
Note: Until version 2024 Update 2, this constant was named stMultiPolygonGeo. - gtMultiLinestring2D: Collection of 2D multilinestrings.
Note: Until version 2024 Update 2, this constant was named stMultiLinestring2D. - gtMultiLinestringGeo: Collection of geographic linestrings.
Note: Until version 2024 Update 2, this constant was named stMultiLinestringGeo. - tgPoint2D: 2-dimensional point, defined by X and Y coordinates on a Cartesian plane.
Note: Until version 2024 Update 2, this constant was named stPoint2D. - gtPointGeo: Geographic point, defined by latitude and longitude.
Note: Until version 2024 Update 2, this constant was named stPointGeo. - tgPolygone2D: Collection of straight consecutive segments that form a polygon.
Note: Until version 2024 Update 2, this constant was named stPolygon2D. - gtPolygonGeo: Collection of consecutive curved segments that form a polygon (the curvature of these segments respects the Earth's curvature).
Note: Until version 2024 Update 2, this constant was named stPolygonGeo. - gtLinestring2D: Set of consecutive straight segments.
Note: Until version 2024 Update 2, this constant was named stLinestring2D. - gtLinestringGeo: Collection of consecutive curved segments (the curvature of these segments respects the Earth's curvature).
Note: Until version 2024 Update 2, this constant was named stLinestringGeo. This property is available in read-only. |
Remarks Functions that use the Geometry type The following functions use Geometry variables:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|