Example - Teradata Vantage NewSQL Engine - 16.20

Teradata Vantage™ Geospatial Data Types

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1181-162K

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);