Package org.geotools.data

Examples of org.geotools.data.TransactionStateDiff.writer()


        //assertTrue(reader instanceof DiffFeatureReader);  //currently it is being wraped by a FilteringFeatureReader
        assertEquals(type, reader.getFeatureType());
        assertEquals(1, count(reader));

        TransactionStateDiff state = (TransactionStateDiff) t.getState(data);
        FeatureWriter<SimpleFeatureType, SimpleFeature> writer = state.writer("road", Filter.INCLUDE);
        SimpleFeature feature;

        while (writer.hasNext()) {
            feature = writer.next();
View Full Code Here


        // feature reader
        assertEquals(type, reader.getFeatureType());
        assertEquals(1, count(reader));

        TransactionStateDiff state = (TransactionStateDiff) t.getState(data);
        FeatureWriter<SimpleFeatureType, SimpleFeature> writer = state.writer("road", Filter.INCLUDE);
        SimpleFeature feature;

        while( writer.hasNext() ) {
            feature = writer.next();
View Full Code Here

        }
      }
    } else {
      TransactionStateDiff state = state(transaction);
      if (state != null) {
        writer = state.writer(typeName, filter);
      } else {
        throw new UnsupportedOperationException("not implemented...");
      }
    }
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.