SDO_GEOM.SDO_LENGTH For 3D Geometry Returns NULL In Oracle Locator 11.2.0.3, It Returns a Value In 10.2 (Doc ID 1385466.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Multimedia - Version 11.2.0.3 to 11.2.0.3 [Release 11.2]
Information in this document applies to any platform.

Symptoms

In Oracle Locator executing the function SDO_GEOM.SDO_LENGTH for a 3 dimentional geometry in a SQL statement returns NULL, example

select sdo_geom.sdo_length(SDO_GEOMETRY(3002, null, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),SDO_ORDINATE_ARRAY(0,0,0,1,0,0)),0.001) from dual;

SDO_GEOM.SDO_LENGTH(SDO_GEOMETRY(3002,NULL,NULL,SDO_ELEM_INFO_ARRAY(1,2,1),SDO_ORDINATE_ARRAY(0,0,0,1,0,0)),0.001)
------------------------------------------------------------------------------------------------------------------


While assigning the result of SDO_GEOM.SDO_LENGTH to a variable in a pl/sql block, example

set serveroutput on
declare
v_value number;
begin
  V_value:= sdo_geom.sdo_length(
 SDO_GEOMETRY(3002, null, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1),
 SDO_ORDINATE_ARRAY(0,0,0,0,0,1)),0.001) ;
 dbms_output.put_line('B '||v_value);
end;
/


raises the errors
ORA-01403: No data found
ORA-06512: in "MDSYS.SDO_VERSION", line 5
ORA-06512: in "MDSYS.SDO_3GL", line 2501
ORA-06512: in "MDSYS.SDO_GEOM", line 1664
ORA-06512: in "MDSYS.SDO_GEOM", line 1600
ORA-06512: in "MDSYS.SDO_GEOM", line 1613

The same function returns a value in Oracle Spatial 11.2.0.3 and Oracle Locator 10.2.0.2.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms