Examples of invertQuery()


Examples of org.geotools.filter.function.RenderingTransformation.invertQuery()

            // it's a transformation starting from vector data, let's see if we can optimize the query
            FeatureCollection originalFeatures;
            Query optimizedQuery = null;
            if(transformation instanceof RenderingTransformation) {
                RenderingTransformation tx = (RenderingTransformation) transformation;
                optimizedQuery = tx.invertQuery(renderingQuery, gridGeometry);
            }
            // if we could not find an optimized query no other choice but to just limit
            // ourselves to the bbox, we don't know if the transformation alters/adds attributes :-(
            if(optimizedQuery == null) {
                 Envelope bounds = (Envelope) renderingQuery.getFilter().accept(ExtractBoundsFilterVisitor.BOUNDS_VISITOR, null);
View Full Code Here

Examples of org.geotools.process.RenderingProcess.invertQuery()

        Map<String, Object> inputs = new HashMap<String, Object>();
        inputs.put("data", data);
        inputs.put("value", 10);
       
        RenderingProcess tx = (RenderingProcess) transformation;
        Query dummyQuery = tx.invertQuery(inputs, null, null);
       
        Map<String, Object> result = transformation.execute(inputs, null);

        assertEquals(1, result.size());
       
View Full Code Here

Examples of org.geotools.process.RenderingProcess.invertQuery()

        RenderingProcess process = (RenderingProcess) this.process;
        // evaluate input expressions
        // at this point do not have an object to evaluate them against
        Map<String, Object> inputs = evaluateInputs(null);
        try {
            return process.invertQuery(inputs, targetQuery, gridGeometry);
        } catch (ProcessException e) {
            throw new RuntimeException("Failed to invert the query, error is: "
                    + e.getMessage(), e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.