(Preview) Spatial Functions
Spatial functions enable you to perform geographical analysis when you model or analyze data. For example, you might calculate the distance between two geographical areas (known as shapes or polygons).
To use these functions in workbooks and data flows, make sure that your Oracle Analytics instance supports geometry data types. Ask your administrator to enable preview mode for Enable Geometry Data Type.
For guidance on visualizing spatial data, see 'Geometry Data Type (Preview)' in Technical Papers.
| Function | Example | Description | Syntax |
|---|---|---|---|
|
|
|
Calculates the area that a shape occupies. |
|
|
|
GeometryAsText(shape)
|
Converts the LONGVARBINARY values of a geometry column into Well-Known Text (WKT) format.
|
GeometryAsText(shape_expr)Where |
|
|
|
Calculates the distance between two shapes. |
|
|
|
|
Calculates the circumference of a shape. |
|
|
|
GeometryPoint(longitude, latitude) |
Creates a geometry data type in Point() format using longitude and latitude values. | GeometryPoint(longitude, latitude)Where |
|
|
|
Determines whether one shape is inside another shape. Returns TRUE or FALSE as a string (varchar). |
|
|
|
|
Determines whether two shapes are within a specified distance of each other. Returns TRUE or FALSE as a string (varchar). |
|