Wrong Results When Using SDO_NN Queries (Doc ID 2275886.1)

Last updated on JUNE 20, 2017

Applies to:

Oracle Spatial and Graph - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

On : 11.2.0.4 version, Query Issues

ACTUAL BEHAVIOR
---------------
select
bl.g3e_fid g3e_fid_bl, SDO_NN_DISTANCE(1) as dist, r.g3e_fid as g3e_fid_rohr
from
GPLINE.b$blatt_i_pt bl , GPLINE.b$rohr_i_ln r
where SDO_NN(r.G3E_GEOMETRY, bl.G3E_GEOMETRY, 'sdo_num_res=2', 1)= 'TRUE'
and bl.g3e_fid = 2034159;

the result is :

G3E_FID_BL DIST G3E_FID_ROHR
---------- ---------- ------------
2034159 1768.79311 32973096
2034159 1768.96916 32973097

the correct result for column G3E_FID_ROHR should be:

G3E_FID_ROHR
------------
48490941
48489656

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