ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2024 feature!
Help / WLanguage / Managing databases / HFSQL / 
  • Properties specific to DSVFormat variables
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 DSVFormat is used to define and change characteristics of the Delimiter Separated Values (DSV) format. The (Delimiter Separated Values) DSV format is a spatial data serialization format in which the user can choose custom delimiters to generate the character string representing their data.
This type of variable is used by GeometrySerializeDSV.
You can define and change the characteristics of this format 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
myLine is Linestring2D
myLine.AddPoint(31, 21)
myLine.AddPoint(32, 22)
myLine.AddPoint(33, 23)

myFormat is DSVFormat
myFormat.CoordinateSeparator = ", "
myFormat.PointOpen = "("
myFormat.PointClose = ")"
myFormat.PointSeparator = "; "
myFormat.ListOpen = "["
myFormat.ListClose = "]"

Trace(GeometrySerializeDSV(myLine, myFormat))
Properties

Properties specific to DSVFormat variables

The following properties can be used to manipulate a variable of type DSVFormat:
Property nameType usedEffect
ListOpenANSI character stringCharacter opening the declaration of a list of points.
Example:
Points (1, 2) and (3, 4) with "{" as opening character of the list, "}" as closing character of the list and ";" as point separator: "{(1, 2); (3, 4)}".
CoordinateSeparatorANSI character stringString used to separate the coordinates of a point.
Example:
Point (1, 2) with ";$;" as separator:: "(1;$;2)"
ListCloseANSI character stringCharacter closing the declaration of a list of points.
Example:
Points (1, 2) and (3, 4) with "{" as opening character of the list, "}" as closing character of the list and ";" as point separator: "{(1, 2); (3, 4)}".
ListSeparatorANSI character stringString used to separate lists in a list of lists of points.
Example: lists ((1, 2), (3, 4) and ((5, 6), (7, 8)) with "LSEP" as list separator: (((1, 2), (3, 4)) LSEP ((5, 6), (7, 8))).
PointCloseANSI character stringCharacter closing the declaration of a point.
Example:
Point (1, 2) with "[" as opening character, "]" as closing character, and ", " as coordinate separator: "[1, 2]".
PointOpenANSI character stringCharacter opening the declaration of a point.
Example:
Point (1, 2) with "[" as opening character, "]" as closing character, and ", " as coordinate separator: "[1, 2]".
PointSeparatorANSI character stringString used to separate points in a list of points.
Example: points (1, 2) and (2, 3) with "! " as point separator: (1, 2)! (2, 3)
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