17.10 - Example: FROM_MGRS - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Geospatial Data Types

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1181-171K
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)