Example - Advanced SQL Engine - Teradata Database

Geospatial Data Types

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
ufo1590694251930.ditamap
dita:ditavalPath
ufo1590694251930.ditaval
dita:id
B035-1181
lifecycle
previous
Product Category
Teradata Vantage™

The following two examples show how to use the SpheroidalDistance function to get the spheroidal distance between Madison (-89.39, 43.09) and Chicago (-87.65, 41.90):

   SELECT SYSSPATIAL.SpheroidalDistance( -89.39, 43.09, -87.65, 41.90,
                                         6378137, 298.257223563);
   SELECT SYSSPATIAL.SpheroidalDistance( -89.39, 43.09, -87.65, 41.90);