Examples of SimpleFeatureIterator


Examples of org.geotools.data.simple.SimpleFeatureIterator

        String typeName = tmpFile.getName().substring(0, tmpFile.getName().lastIndexOf(".csv"));
        SimpleFeatureCollection fc = s.getFeatureSource(typeName).getFeatures();
        assertEquals(features.size(), fc.size());
        // Read
        int c = 0;
        SimpleFeatureIterator it = fc.features();
        try {
            while (it.hasNext()) {
                SimpleFeature f = it.next();
                assertNotNull(f);
                assertNotNull(f.getDefaultGeometry());
                c++;
            }
        } finally {
            it.close();
        }
        assertEquals(fc.size(), c);
    }
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.