Package org.geotools.data.sort

Examples of org.geotools.data.sort.SortedFeatureReader


        if (naturalOrder) {
            reader = getNativeReader(propertyNames, filter, startIndex, maxFeatures, screenMap);
        } else {
            reader = getNativeReader(propertyNames, filter, null, null, screenMap);
            // sorting
            reader = new SortedFeatureReader(DataUtilities.simple(reader), query);
            if (startIndex > 0) {
                // skip the first n records
                for (int i = 0; i < startIndex && reader.hasNext(); i++) {
                    reader.next();
                }
View Full Code Here


        }
       
        // sorting
        if ( query.getSortBy() != null && query.getSortBy().length != 0 ) {
            if ( !canSort() ) {
                reader = new SortedFeatureReader(DataUtilities.simple(reader), query);
            }
        }

       
        // offset
View Full Code Here

TOP

Related Classes of org.geotools.data.sort.SortedFeatureReader

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.