Package org.geotools.feature.collection

Examples of org.geotools.feature.collection.MaxSimpleFeatureCollection.features()


        assertEquals(0, max.size());
    }

    public void testIteratorMax() throws Exception {
        MaxSimpleFeatureCollection max = new MaxSimpleFeatureCollection(delegate, 2);
        SimpleFeatureIterator i = max.features();
        try {
            for (int x = 0; x < 2; x++) {
                assertTrue(i.hasNext());
                i.next();
            }
View Full Code Here


        }
    }
   
    public void testIteratorSkipMax() throws Exception {
        MaxSimpleFeatureCollection max = new MaxSimpleFeatureCollection(delegate, delegate.size() - 1, 2);
        SimpleFeatureIterator i = max.features();
        try {
            assertTrue(i.hasNext());
            i.next();
            assertFalse(i.hasNext());
        } finally {
View Full Code Here

        }
    }
   
    public void testIteratorSkipMoreSize() throws Exception {
        MaxSimpleFeatureCollection max = new MaxSimpleFeatureCollection(delegate, delegate.size() + 1, 2);
        SimpleFeatureIterator i = max.features();
        try {
            assertFalse(i.hasNext());
        } finally {
            i.close();           
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.