On Mon, Nov 28, 2011 at 8:32 PM, Chris Shain <[email protected]> wrote:
> Can anyone give me guidance on how to hook an optimized (indexed) bounding
> box feature lookup to
> the ContentDataStore/ContentFeatureStore/FeatureReader<SimpleFeatureType,
> SimpleFeature> class hierarchy?
>
> i.e. I was assuming there was a getFeaturesByBoundingBox( ... ) type of
> function, but that doesn't seem to be available. What is my integration
> point here?
>
The Query object, and the Filter inside of it. If all the filtering you can
do natively is by bounding box
then the situation looks a lot like in the shapefile data store, there is
already a filter visitor that
will extract the bbox out of a filter (and then you have to run the full
filter in memory, two pass
filtering, first pass natively against the bbox, second pass in memory to
get support for all kinds
of filters).
See the ShapefileFeatureSource.getReaderInternal() method here for an
example:
http://svn.osgeo.org/geotools/trunk/modules/unsupported/shapefile-ng/src/main/java/org/geotools/data/shapefile/ng/ShapefileFeatureSource.java
Cheers
Andrea
--
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 962313
http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
-------------------------------------------------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel