Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] Problem creating OR filter with disjoint geometries

Beau,

Your timing is exceptionally good.  We are reviewing a code change that
should help to address exactly this issue.  It should be merged into the
main branch later today.  When it is, I'll drop you a line.

Thanks!

Sincerely,
  -- Chris


On Tue, 2014-06-24 at 19:00 +0000, Beau Lalonde wrote:
> All,
> 
> I occasionally have the need to perform a GeoMesa query against multiple disjoint regions in space.  
> 
> Currently, I am able to query successfully if I perform separate queries for each region, but just today I attempted to do a single query by OR'ing two geometries together and I ended up getting back results that were not in either of my two geometries.  I am not sure if this is a bug, a limitation, or if I am doing something wrong.
> 
> Here is my code:
> 	...
> 	FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2();
> 	Filter filter = ff.or(Arrays.asList(geographyfilter1, geographyfilter2));
> 	Query query = new Query(simpleFeatureTypeName, filter);
> 	...
> 
> My code compiles and executes as if nothing is wrong, but the query results are not what I expect, because I get back results that do not appear when I perform separate queries for geographyfilter1 and geographyfilter2.
> 
> Is there a way I can perform such a query as a single query?
> 
> Thanks,
> 
> Beau
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> geomesa-users mailing list
> geomesa-users@xxxxxxxxxxxxxxxx
> http://www.locationtech.org/mailman/listinfo/geomesa-users



Back to the top