Examples of visit()


Examples of org.geotools.data.georest.GeoRestFilterVisitor.visit()

    public void testBBOX() throws Exception {
        StringBuilder builder = new StringBuilder(URL);
        GeoRestFilterVisitor visitor = new GeoRestFilterVisitor(true);
        BBOX bbox = FF.bbox("prop0", 0, 0, 10, 10, "EPSG:4326");
        visitor.visit(bbox, null);
        visitor.finish(builder, false);
        Assert.assertEquals(URL + "?bbox=0.0,0.0,10.0,10.0", builder.toString());
    }

    public void testPropertyIsEqualTo() throws Exception {
View Full Code Here

Examples of org.geotools.data.jdbc.FilterToSQL.visit()

        FilterToSQL filterToSQL = dataStore.createFilterToSQL(null);
       
        StringWriter w = new StringWriter();
        filterToSQL.setWriter(w);
       
        filterToSQL.visit(literal,type);
       
        sql.append( w.getBuffer().toString() );
//        if (CharSequence.class.isAssignableFrom(type)) {
//            sql.append("'").append(value).append("'");
//        } else {
View Full Code Here

Examples of org.geotools.filter.visitor.DuplicatingFilterVisitor.visit()

         *        be upgraded. NOTE: it is good enough to check for the outer filter to be a BBOX
         *        because FastBBOX won't clone itself if the result of the visitor is not a BBOX
         */
        if (query.getFilter() instanceof BBOX) {
            DuplicatingFilterVisitor dfv = new DuplicatingFilterVisitor();
            Filter filter = (Filter) dfv.visit((BBOX)query.getFilter(), null);
            Query q = new Query(query);
            q.setFilter(filter);
            query = q;
        }
        return strategy.getFeatureReader(query, transaction);
View Full Code Here

Examples of org.geotools.renderer.lite.MetaBufferEstimator.visit()

    }
    // create the style
    Style style = styleFactoryService.createStyle(layer, copy);
    // estimate the buffer
    MetaBufferEstimator estimator = new MetaBufferEstimator();
    estimator.visit(style);
    int bufferInPixels = estimator.getBuffer();
    // expand area to include buffer
    Rectangle tileInpix = mapContext.getViewport().getScreenArea();
    ReferencedEnvelope metaArea = new ReferencedEnvelope(areaOfInterest);
    metaArea.expandBy(bufferInPixels / tileInpix.getWidth() * areaOfInterest.getWidth(),
 
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerHelper.visit()

                    rgbViewer.updateHistograms(null);
                }
            });

            RasterSymbolizerHelper rsp = new RasterSymbolizerHelper(gc, null);
            rsp.visit(rs);
            GridCoverage2D recoloredGridCoverage = (GridCoverage2D) rsp.getOutput();

            final OperationJAI op = new OperationJAI("Histogram"); //$NON-NLS-1$
            ParameterValueGroup params = op.getParameters();
            params.parameter("Source").setValue(recoloredGridCoverage); //$NON-NLS-1$
View Full Code Here

Examples of org.geotools.renderer.lite.gridcoverage2d.SubchainStyleVisitorCoverageProcessingAdapter.visit()

        final RasterSymbolizer symbolizer = (RasterSymbolizer) style.featureTypeStyles().get(0)
                .rules().get(0).symbolizers().get(0);

        SubchainStyleVisitorCoverageProcessingAdapter rsh = new RasterSymbolizerHelper(coverage,
                null);
        rsh.visit(symbolizer);
        GridCoverage2D g = ((GridCoverage2D) rsh.execute()).geophysics(false);
        return g;
    }

}
View Full Code Here

Examples of org.geotools.styling.AbstractStyleVisitor.visit()

                assertNotNull(labelPlacement.getDisplacement());
                super.visit(text);
            }
        };

        styleValidator.visit(gridStyle);

        assertEquals(1, foundLineSymb.intValue());
        assertEquals(1, foundTextSymb.intValue());
    }
View Full Code Here

Examples of org.geotools.styling.StyleAttributeExtractor.visit()

            return;
        }

        // extract attributes used in the style
        StyleAttributeExtractor sae = new StyleAttributeExtractor();
        sae.visit(style);
        String[] styleAttributes = sae.getAttributeNames();

        // see if we can collect any attribute out of the provided layer
        Set attributes = new HashSet();
        if (mapLayerInfo.getType() == MapLayerInfo.TYPE_VECTOR
View Full Code Here

Examples of org.geotools.styling.StyleAttributeExtractorTruncated.visit()

      if (dynamicSymbolizers.containsKey(key)) {
        return style;
      } else {
        // lets see if it's static or dynamic
        StyleAttributeExtractorTruncated sae = new StyleAttributeExtractorTruncated();
        sae.visit(symbolizer);

        Set nameSet = sae.getAttributeNameSet();
        boolean noAttributes = (nameSet == null) || (nameSet.size() == 0);
        if (noAttributes && !sae.isUsingVolatileFunctions()) {
          staticSymbolizers.put(key, style);
View Full Code Here

Examples of org.geotools.styling.visitor.DpiRescaleStyleVisitor.visit()

            if(dpi != standardDpi) {
                double scaleFactor = dpi / standardDpi;
                w = (int) Math.round(w * scaleFactor);
                h = (int) Math.round(h * scaleFactor);
                DpiRescaleStyleVisitor dpiVisitor = new DpiRescaleStyleVisitor(scaleFactor);
                dpiVisitor.visit(gt2Style);
                gt2Style = (Style) dpiVisitor.getCopy();
            }
            // apply UOM rescaling if we have a scale
            if (request.getScale() > 0) {
                double pixelsPerMeters = RendererUtilities.calculatePixelsPerMeterRatio(request.getScale(), request.getLegendOptions());
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.