Package org.geotools.data.view

Examples of org.geotools.data.view.DefaultView


                                .getHandle(), query.getMaxFeatures(), query
                                .getNamespace(), query.getPropertyNames(),
                                typeName);
                    }
                    // provide our own default view wrapper (will be required in GeoTools 2.7)
                    SimpleFeatureSource view = new DefaultView((SimpleFeatureSource) resource, query);
                   
                    // check that view is of the requested type
                    if (requestedType.isInstance(view)){
                        return view;
                    } else {
View Full Code Here


     * @throws SchemaException
     *             if the query is incompatible with the store's contents
     */
    public static SimpleFeatureSource createView(final DataStore store, final Query query)
            throws IOException, SchemaException {
        return new DefaultView(store.getFeatureSource(query.getTypeName()), query);
    }
View Full Code Here

                        throw new IllegalStateException(
                                "Cannot apply dynamic dimension restrictions to complex features");
                    }
                    SimpleFeatureSource simpleSource = (SimpleFeatureSource) fs;
                    try {
                        return new DefaultView(simpleSource, new Query(simpleSource.getSchema()
                                .getTypeName(), filter));
                    } catch (SchemaException e) {
                        throw new IOException("Failed to restrict the domain");
                    }
                }
View Full Code Here

TOP

Related Classes of org.geotools.data.view.DefaultView

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.