0
當我嘗試使用Oracle Spatial operators,它拋出無法訪問Oracle Spatial操作符
ORA-13226:沒有空間索引不支持接口。
雖然使用SDO_GEOM過程,但它工作正常。 例如
select *
from test_sdo_geometry
where SDO_GEOM.WITHIN_DISTANCE(sdo, 25, SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(151.16567373275757, -33.9031022157086, null), null, null), 0.05, 'unit=M')='TRUE'
order by 1;
但是,對於Oracle運算符,它會引發上述錯誤。
select * from test_sdo_geometry where SDO_WITHIN_DISTANCE(SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(151.16567373275757, -33.9031022157086, null), null, null), SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(151.16567373275757, -33.9031022157086, null), null, null), 'distance=10 unit=M')='TRUE' order by 1;