ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / Spatial data management
  • Properties specific to LinestringGeo variables
  • Functions that use the LinestringGeo type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The LinestringGeo type is used to define all the advanced characteristics of a geographic linestring. You can define and change the characteristics of this linestring using different WLanguage properties.
Characteristics of a geographic linestring:
A geographic linestring is a set of contiguous segments represented on a geographic coordinate system (latitude - longitude). It is defined by a sequence of points.
Remark: Geographic linestrings are not composed of straight segments like 2D linestrings. A geographic linestring describes a location on the spheroidal surface of the earth: a series of arcs with the curvature of the earth, comparable to flight paths.
If the start and end points of a linestring are the same, the linestring is "closed".
If the linestring does not self-intersect, the linestring is "simple".
A simple and closed linestring is referred to as a "LinearRing".
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
myPoint is PointGeo
myLine is LinestringGeo

myPoint.Latitude = 12.127542
myPoint.Longitude = 35.4245
myLine.Point.Add(myPoint)

myPoint.Latitude = 12.24147
myPoint.Longitude = 35.2147
myLine.Point.Add(myPoint)

myPoint.Latitude = 13.2411
myPoint.Longitude = 33.2141
myLine.Point.Add(myPoint)
Properties

Properties specific to LinestringGeo variables

The following properties can be used to manipulate a geographic linestring:
Property nameType usedEffect
PointArray of PointGeoLinestring points.
TypeInteger constantType of the current geometry. For a linestring defined with geographic coordinates, corresponds to the gtLinestringGeo constant.
Remark: Until version 2024 Update 2, this constant was named stLinestringGeo.
This property is available in read-only.
Remarks

Functions that use the LinestringGeo type

The following functions use LinestringGeo variables:
GeometryAreaCalculates the area of a given geometry.
GeometryContainDetermines if geometry A contains geometry B.
GeometryConvexHullCalculates the convex hull of the specified geometry.
GeometryCorrectReturns a corrected version of the specified geometry.
GeometryCoverDetermines if geometry A covers geometry B.
GeometryCoveredByDetermines if every point of geometry A lies inside or on the boundary of geometry B.
GeometryCrossCompares two geometries and determines if their intersection spatially crosses.
GeometryDifferenceReturns a geometry representing the difference between two geometries.
GeometryDisjointDetermines whether two geometries are disjoint, i.e. whether their intersection is empty.
GeometryDistanceCalculates the distance between two geometries.
GeometryEqualDetermines whether two geometries are spatially equal, i.e. whether the first geometry is included in the second, and vice versa.
GeometryIntersectChecks whether two geometries have a non-empty intersection.
GeometryIntersectionReturns a geometry representing the intersection of two geometries.
GeometryIsValidChecks whether the specified geometry is valid according to the OGC rules.
GeometryLengthCalculates the length of a given geometry.
GeometryOverlapDetermines whether two geometries overlap.
GeometryPerimeterCalculates the perimeter of a given geometry (polygon or multipolygon).
GeometrySerializeDSVSerializes a geometry using the specified DSV format.
GeometrySerializeWKTSerializes a geometry using the Well-Known Text (WKT) format.
GeometrySymmetricDifferenceCalculates the symmetric difference between two geometries.
GeometryTouchDetermines whether two geometries touch.
GeometryUnionReturns a geometry corresponding to the union of two geometries.
GeometryWithinDetermines whether geometry A is completely within geometry B (i.e., geometry B completely contains geometry A).
LinestringGeoAddPointAdds a new point to a geographic linestring.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/28/2024

Send a report | Local help