geotools/geotools — pull request #70 by svzdvd (2012-11-30 13:46:27+00:00)
Title: GEOT-4322: added Oracle SDO_NN function

Hi,

I've added an Oracle specific FilterFunction for nearest neighbor search: sdo_nn.
Required parameters:
* geometry - reference geometry
* sdo_num_res - number of results
Optional parameters:
* cql_filter - an additional filter that must be satisfied
* sdo_batch_size - number of rows to be evaluated at a time

Usage example:

```xml

-10,-10

3

true

```

In a CQL filter:
cql_filter=sdo_nn(POINT(100 100),3)=true

Limitation:
it can be used only inside a PropertyIsEqualTo comparison and it can be compared only to 'true'.

Here's the discussion on gt-devel:
http://bit.ly/TwCg4D