I'm trying to implement a new DataStore for Geoserver. When I start to
look at example of DataStore: gt-property project (Reading data from
Java properties files) I notice that on each request all data are read
from particular layer (because hasNext() and next() has no information
about BBOX) and my question is:
Is there a possible to pass BBOX from request to DataStore to avoid
unnecessary iteration over all data in DataStore?
I have found answer, and I would like to share with you
It is only need to override getFeatureReader( String typeName, Query
query) from AbstractDataStore (you may do it in gt-property GeoTools
project in PropertyDataStore class)
and just add:
of course it is need to change FastBBOX visibility to public
and after this you can:
filterBBox.getMinX();
filterBBox.getMaxX();
filterBBox.getMinY();
filterBBox.getMaxY();
Is there a way to do this without changing FastBBOX class?
I'm trying to implement a new DataStore for Geoserver. When I start to
look at example of DataStore: gt-property project (Reading data from
Java properties files) I notice that on each request all data are read
from particular layer (because hasNext() and next() has no information
about BBOX) and my question is:
Is there a possible to pass BBOX from request to DataStore to avoid
unnecessary iteration over all data in DataStore?