My Oracle Support Banner

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

Last updated on APRIL 01, 2020

Applies to:

Oracle Spatial and Graph - Version 11.2.0.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('BLOCKGROUPS','GEOMETRY','AVG','<name>',p_coordinates);
DBMS_OUTPUT.put_line('AVG for <name> 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
*/

Changes

 

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
Changes
Cause
Solution
References


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