Sdo_sam.Aggregates_for_geometry Error Ora-13050 Unable To Construct Spatial Object (Doc ID 1344582.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Spatial - Version: 11.2.0.2 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms


When trying to use sdo_sam.aggregates_for_geometry getting error ORA-13050 unable to construct spatial object

declare
p_coordinates MDSYS.SDO_GEOMETRY;
x1 NUMBER(22);
BEGIN
select GEOMETRY
into p_coordinates
FROM TEMP;

x1 := sdo_sam.aggregates_for_geometry('TMC_CCT_BLOCKGROUPS','GEOMETRY','AVG','OWNER_OCCUPIED_HOUSING',p_coordinates);
DBMS_OUTPUT.put_line('AVG for OWNER_OCCUPIED_HOUSING is ' ||x1 );
END;
/


/*
ERROR at line 1:
ORA-13050: unable to construct spatial object
ORA-06512: at "MDSYS.SDO_SAM", line 1069
ORA-06512: at line 9
*/

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