Package org.geotools.process.vector

Examples of org.geotools.process.vector.TransformProcess$ReshapeFeatureCollection


        if( monitor == null ) monitor = new NullProgressMonitor();
       
        monitor.beginTask(Messages.ReshapeOperation_task, 100 );

        List<Definition> transform = dialog.getTransform();
        TransformProcess process = new TransformProcess();
        DefaultTransaction transaction = new DefaultTransaction("Processing "+source.getName() ); //$NON-NLS-1$
        try {
            SimpleFeatureCollection collection = source.getFeatures();
            SimpleFeatureCollection output = process.executeList(collection, transform);

           
            final SimpleFeatureType featureType = output.getSchema();
           
            IGeoResource scratch = CatalogPlugin.getDefault().getLocalCatalog().createTemporaryResource( featureType );
View Full Code Here


        if( monitor == null ) monitor = new NullProgressMonitor();
       
        monitor.beginTask(Messages.ReshapeOperation_task, 100 );

        List<Definition> transform = dialog.getTransform();
        TransformProcess process = new TransformProcess();
        DefaultTransaction transaction = new DefaultTransaction("Processing "+source.getName() ); //$NON-NLS-1$
        try {
            SimpleFeatureCollection collection = source.getFeatures();
            SimpleFeatureCollection output = process.executeList(collection, transform);

           
            final SimpleFeatureType featureType = output.getSchema();
           
            IGeoResource scratch = CatalogPlugin.getDefault().getLocalCatalog().createTemporaryResource( featureType );
View Full Code Here

    String transform =
        "the_geom=the_geom\n"+
        "name=name\n"+
        "area=area( the_geom )";
   
    TransformProcess process = new TransformProcess();
   
    SimpleFeatureCollection features = process.execute( featureCollection, transform );
    // transform end
}
View Full Code Here

    @Test
    public void testSum() throws Exception {
        SimpleFeatureSource source = bugs.getFeatureSource("bugsites");

       
        TransformProcess process = new TransformProcess();
       
        String definition = "the_geom=the_geom\nnumber=cat";
        SimpleFeatureCollection origional = source.getFeatures();
        SimpleFeatureCollection result = process.execute( origional, definition );
       
        assertEquals( origional.size(), result.size() );
       
        SimpleFeatureType schema = result.getSchema();
        AttributeDescriptor number = schema.getDescriptor("number");
View Full Code Here

TOP

Related Classes of org.geotools.process.vector.TransformProcess$ReshapeFeatureCollection

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.