Hi,

I've been testing Jena Spatial with good results, it's very useful and easy
to configure it, but in my opinion is still limited.

For example, in my queries I get some results satisfying nearby queries,
but (as long as I know) there is not an in-built method to order properly
these results by distance (I consider that getting first the nearest
results it's a typical feature).

For example it'd be perfect something like this:

SELECT ?point ?distance
{
    ?point rdf:type geo:SpatialThing .
    ?point geo:lat ?lat .
    ?point geo:long ?long .
    ?point spatial:withinCircle (41.2085 -3.713 85)
    ?distance spatial:distance (?lat ?long 41.2085 -3.713 'km')
}

ORDER BY ?distance

I offer myself to make this improvement (and maybe other in the future) but
I'd need some guidance to perform this. My first question is if it is
possible to be done, because after reviewing the code I've noted all the
implemented functions only says if the result fits or not ("distance" is
not a SpatialOperation like the rest..). How do you approach the
development of this feature?

Thanks in advance,
David

Reply via email to