SDO_RELATE error ... ORA-13207: incorrect use of the [SDO_RELATE] operator
Just trying to get this query to work. Just got put on this spatial project and simply trying to get this query to work ... ANy ideas?
Thanks in advance
SQL> select a.LAYER_ID,
2 b.FEATURE_DEFINITION_ID,
3 d.OBJECTID,
4 a.LAYER_ID,
5 a.LAYER_NAME,
6 a.AOI_ID
7 from LAYER a,
8 FEATURE_DEFINITION b,
9 FEATURE c,
10 SDO d
11 where a.FEATURE_DEFINITION_ID = b.FEATURE_DEFINITION_ID
12 and d.FEATURE_ID = c.FEATURE_ID
13 and c.LAYER_ID = a.LAYER_ID
14 and a.FEATURE_DEFINITION_ID = 1
15 and sdo_relate(d.SHAPE,
16 SDO_GEOMETRY(2003,
17 null,
18 null,
19 SDO_ELEM_INFO_ARRAY(1,1005,3),
20 SDO_ORDINATE_ARRAY(180,90,180,90)),
21 'masktype = ANYINTERACT querytype = WINDOW') = 'TRUE'
22 /
select a.LAYER_ID,
*
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13207: incorrect use of the [SDO_RELATE] operator
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 286
ORA-06512: at line 1