I appreciate you taking time to help on this.

I tried the query and it doesn't return result.
The query $b runs. Its given below.
select * from BBB where [lat,lon,$spatial] NEAR 
[25.3647,85.3153,{"maxDistance":10000}]

But the following queries WITHIN and NEAR are not returning any result.
select from BBB where [lat,lon] WITHIN [25.3648,85.3154]
select from BBB where [lat,lon] NEAR [25.3648,85.3154]

I think for the time being I will stick with passing $spatial variable 
while making query.

I just wanted to report the issue. It looks like a bug with Orient DB.


On Friday, September 25, 2015 at 2:18:33 PM UTC+5:30, [email protected] 
wrote:
>
> Hi,
>
> As in the example of the previous answer your first query works if you 
> replace NEAR with WITHIN.
> And to solve your problem try this:
>
> select expand($c) 
> let $a=(select from BBB where [lat,lon] WITHIN [25.3648,85.3154]),
> $b=(select * from BBB where [lat,lon,$spatial] NEAR 
> [25.3647,85.3153,{"maxDistance":10000}]),
> $c=difference($a,$b)
>
> Regards,
> Michela
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to