I have a piece of legacy code to maintain, using a MemoryDataStore.
At certain point, the following code is executed:
MemoryDataStore ds = new MemoryDataStore(ftBuilder.buildFeatureType());
sfs = (SimpleFeatureStore) ds.getFeatureSource(ftName);
sfs.addFeatures(colection);
.......
Query query = new Query();
query.setStartIndex(start);
query.setMaxFeatures(limit);
SimpleFeatureIterator it = sfs.getFeatures(query).features();
The resulting iterator will honour the setMaxFeatures property, but
setStartIndex is ignored. Is it supposed to work like this? Am I doing
something wrong?
Thanks in advance,
César
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
César Martínez Izquierdo
GIS developer
- - - - - - - - - - - - - - - - - - - -
Blog: http://geotechnotes.wordpress.com/
ETC-SIA: http://sia.eionet.europa.eu/
Universitat Autònoma de Barcelona (SPAIN)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users