My Oracle Support Banner

SDO_CS.TO_USNG Returning Null When Value Expected (Doc ID 2780454.1)

Last updated on JANUARY 28, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 19.6.0.0.0 and later
Information in this document applies to any platform.

Symptoms

SDO_CS.TO_USNG is returning null when value expected

select SDO_CS.TO_USNG(SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(0, -80, NULL), NULL, NULL), 1) mgrs from dual;

MGRS
--------------------------------------------------------------------------------
30CWS5813216915

select SDO_CS.TO_USNG(SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(0, -81, NULL), NULL, NULL), 1) mgrs from dual;
MGRS
--------------------------------------------------------------------------------


select SDO_CS.TO_USNG(SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(0, -82, NULL), NULL, NULL), 1) mgrs from dual;
MGRS
--------------

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.