Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] Empty result with LOOSE_BBOX==FALSE option.

Hello,

I would try enabling explain logging in both cases to see exactly what is actually being run. Exactly how you configure logging will depend on your setup, but you want to set the geomesa Explainer class to trace. Assuming log4j, you can add a log4j.properties file with the following line:

log4j.category.org.locationtech.geomesa.index.utils.Explainer=TRACE

this is explained for geoserver here:

http://www.geomesa.org/documentation/user/geoserver.html#logging-explain-query-planning

If you can reply back with the output from the two scenarios, we can help pinpoint the difference.

Thanks,

Emilio

On 09/12/2017 09:52 PM, Jason Koh wrote:
Hi,

I am trying to integrate GeoMesa-HBase with our system with GeoTools Java interface, which is using Vert.X. 

Current system configuration
- Ubuntu 16.04
- HBase 1.2.6
- Maven 3.3.9
- Geomesa 1.3.1
- geotools 15.1
- Java openjdk, 1.8.0.131
- Vert.x 3.4.1
- Eclipse Oxygen.

When I query like this:
```Java
Query query = new Query(simpleFeatureTypeName, cqlFilter);
FeatureSource featureSource = dataStore.getFeatureSource(simpleFeatureTypeName);
FeatureIterator featureItr = featureSource.getFeatures(query).features();
```
It returned the result correctly. I however want to get more precise result, so disable the LOOSE_BOX feature by the following code.
```
Query query = new Query(simpleFeatureTypeName, cqlFilter);
**query.getHints().put(QueryHints.LOOSE_BBOX(), Boolean.FALSE);**
FeatureSource featureSource = dataStore.getFeatureSource(simpleFeatureTypeName);
FeatureIterator featureItr = featureSource.getFeatures(query).features();
```

It works when I test it through Eclipse with fewer result with more precision. It however returns empty result when I package it through mvn and then test. Both were called through exactly same code. (If I comment out the LOOSE_BBOX line, it works in both cases.)

I have compared classpaths in pom.xml and the Eclipse project (imported as Maven). They are all using same versions though the orders are different.

It is totally strange to me, and I wonder if any of you have a clue in this problem.

Thank you.


With regards,
Jason Koh


_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-users


Back to the top