Example: FROM_MGRS

Teradata Vantage™ Geospatial Data Types

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

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)