Package org.geotools.data.property.ng

Examples of org.geotools.data.property.ng.PropertyFeatureStore


        return count( reader );               
    }
   
    public void testWriterSkipThrough() throws Exception {
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
        File in = writer.read;
        File out = writer.write;
       
        int count = 0;
View Full Code Here


       
        assertEquals( 5, count( "road" ) );
    }
    public void testWriterChangeName() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
        int count = 0;
        while( writer.hasNext() ){
            SimpleFeature f = writer.next();
            f.setAttribute(1,"name "+(count+1));
View Full Code Here

        assertEquals( 5, count );
        assertEquals( 5, count( "road" ));               
    }
    public void testWriterChangeFirstName() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
        SimpleFeature f;
        f = writer.next();
        f.setAttribute(1,"changed");
        writer.write();
View Full Code Here

        writer.close();                          
        assertEquals( 5, count( "road" ));   
    }
    public void testWriterChangeLastName() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
        SimpleFeature f;
        writer.next();
        writer.next();
        writer.next();       
View Full Code Here

        writer.close();                          
        assertEquals( 5, count( "road" ));   
    }   
    public void testWriterChangeAppend() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
        SimpleFeature f;
        writer.next();
        writer.next();
        writer.next();
View Full Code Here

        writer.close();
        assertEquals( 6, count( "road" ));   
    }
    public void testWriterChangeRemoveFirst() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
       
        writer.next();
        writer.remove();
        writer.close();
View Full Code Here

        writer.close();
        assertEquals( 4, count( "road" ));   
    }
    public void testWriterChangeRemoveLast() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
       
        writer.next();
        writer.next();
        writer.next();
View Full Code Here

        writer.close();
        assertEquals( 4, count( "road" ));   
    }
    public void testWriterChangeRemoveAppend() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
        SimpleFeature f;
        writer.next();
        writer.next();
        writer.next();
View Full Code Here

        writer.close();
        assertEquals( 5, count( "road" ));                   
    }
    public void testWriterChangeIgnoreAppend() throws Exception{
        Query query = new Query("road");
        PropertyFeatureStore featureStore = (PropertyFeatureStore) store.getFeatureSource("road");
        PropertyFeatureWriter writer = (PropertyFeatureWriter) featureStore.getWriterInternal( query, 0x01<<0 );
       
        SimpleFeature f;
        writer.next();
        writer.next();
        writer.next();
View Full Code Here

TOP

Related Classes of org.geotools.data.property.ng.PropertyFeatureStore

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.