16.20 - Example: FROM_MGRS - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ Geospatial Data Types

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1181-162K
Language
English (United States)

This example converts coordinates in the MGRS system to Geodetic coordinates in the “WGS 84” spatial reference system.

SELECT FROM_MGRS(
  '36TTQ6355387329', 
  (SELECT SRTEXT FROM SYSSPATIAL.SPATIAL_REF_SYS WHERE SRID = 1619),
  1619);

Returns:

FROM_MGRS('36TTQ6355387329',<Scalar Subquery>,1619)
--------------------------------------------------------------------
POINT (29.999987897221764 44.999995138532547)