return toStreamingFeatureCollection(Neo4jFeatureBuilder.getTypeFromLayer(layer), bounds);
}
public FeatureCollection<SimpleFeatureType,SimpleFeature> toStreamingFeatureCollection(SimpleFeatureType featureType, final Envelope bounds) throws IOException {
final Neo4jFeatureBuilder featureBuilder = new Neo4jFeatureBuilder(layer);
return new AbstractFeatureCollection(featureType) {
@Override
public int size() {
return Integer.MAX_VALUE;
}