Package org.geotools.data.store

Examples of org.geotools.data.store.EmptyFeatureCollection


            Query.setTypeName(typeName);
            query = Query;
        }

        if (!typeName.equals(query.getTypeName())) {
            return new EmptyFeatureCollection(schema);
        } else {
            return new DefaultFeatureResults(this, query);
        }
    }
View Full Code Here


            query = copy;
        }
        SimpleFeatureCollection features = collection;
        // step one: filter
        if( query.getFilter() != null && query.getFilter().equals(Filter.EXCLUDE)){
            return new EmptyFeatureCollection( getSchema() );
        }
        if (query.getFilter() != null && query.getFilter() != Filter.INCLUDE) {
            features = new FilteringSimpleFeatureCollection(features, query.getFilter());
        }
        // step two: reproject
View Full Code Here

        if(curCollection.isEmpty()) {
            if(isShapefileCompatible(originalSchema)) {
                return writeShapefile(tempDir, curCollection);
            } else {
                SimpleFeatureType simplifiedShema = buildShapefileCompatible(originalSchema);
                return writeShapefile(tempDir, new EmptyFeatureCollection(simplifiedShema));
            }
        }
       
        // create the temp file for this output
        File outFile = new File(tempDir, originalSchema.getTypeName() + ".gml");
View Full Code Here

        if(curCollection.isEmpty()) {
            if(isShapefileCompatible(originalSchema)) {
                return writeShapefile(tempDir, curCollection);
            } else {
                SimpleFeatureType simplifiedShema = buildShapefileCompatible(originalSchema);
                return writeShapefile(tempDir, new EmptyFeatureCollection(simplifiedShema));
            }
        }
       
        // create the temp file for this output
        File outFile = new File(tempDir, originalSchema.getTypeName() + ".gml");
View Full Code Here

TOP

Related Classes of org.geotools.data.store.EmptyFeatureCollection

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.