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