we do millions of operations like the following
find_feature(latitude, longitude)
currently we basically call:
Filter filter =
filterFactory.insersect(geometryFactory.createPoint(latitude,longitude),
expr) ;
DefaultQuery query = new DefaultQuery(null, filter);
features = ustzFeatureSource.getFeatures(query);
for(Feature f : features) {
.....
}
but as the attached stack trace shows, every creation of the features
collection (i.e. corresponding to every query ) invokes
creation of a new featureReader, and opening of the index file, which
takes a lot of time.
since the dataSource never changes ( we always query against the same
shape file and index), is there a way to let geotools
use the same file channel ?
Thanks
Yang
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users