GET_X¶
The GET_X function returns the x-coordinate of a given POINT data type. It takes one POINT data type argument and returns a FLOAT value representing the x-coordinate.
Syntax¶
Parameters:
point: The geographical coordinate of typePointfrom which the X-coordinate will be extracted.
Examples¶
Consider the following table PointGroup:
With the following data:
Example 1: Get the X-coordinate from a point¶
Result:
| point_field |
|---|
| 0.3134 |
Example 2: Get the X-coordinate from a point using CAST¶
Result:
| ptx |
|---|
| 0.1 |
Example 3: Get the X-coordinate from a point using POINT function¶
Result:
| ptx |
|---|
| 0.1 |
Errors¶
If the argument is not of type Point, a FunctionRequiresPointValue error will be thrown.