Package org.geotools.data.simple

Examples of org.geotools.data.simple.DelegateSimpleFeatureReader


                // simple case, we managed to keep everything in memory, sort and return a
                // reader based on the collection contents
                Collections.sort(features, comparator);

                SimpleFeatureIterator fi = new ListFeatureCollection(schema, features).features();
                return new DelegateSimpleFeatureReader(schema, fi);
            } else {
                // go merge-sort
                cleanFile = false;
                return new MergeSortReader(schema, raf, file, readers, comparator);
            }
View Full Code Here


     *        use the system default
     * @throws IOException
     */
    public SortedFeatureIterator(SimpleFeatureIterator iterator, SimpleFeatureType schema,
            SortBy[] sortBy, int maxFeatures) throws IOException {
        DelegateSimpleFeatureReader reader = new DelegateSimpleFeatureReader(schema, iterator);
        SimpleFeatureReader sorted = new SortedFeatureReader(reader, sortBy, maxFeatures);
        this.delegate = new FeatureReaderFeatureIterator(sorted);
    }
View Full Code Here

        builder.add(null);
        builder.add(new Integer(-1));
        builder.add(null);
        fc.add(builder.buildFeature((features + 1) + ""));

        fr = new DelegateSimpleFeatureReader(schema, fc.features());

        ff = CommonFactoryFinder.getFilterFactory(null);
        peopleAsc = new SortBy[] { ff.sort("PERSONS", SortOrder.ASCENDING) };
        peopleDesc = new SortBy[] { ff.sort("PERSONS", SortOrder.DESCENDING) };
        dateAsc = new SortBy[] { ff.sort("date", SortOrder.ASCENDING) };
View Full Code Here

TOP

Related Classes of org.geotools.data.simple.DelegateSimpleFeatureReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.