Examples of FilterFactoryImpl


Examples of org.geotools.filter.FilterFactoryImpl

            StyleBuilder styleBuilder = new StyleBuilder();

            LineSymbolizerImpl lineSymb = (LineSymbolizerImpl) styleBuilder.createLineSymbolizer();
            lineSymb.setUnitOfMeasure(uom);
           
            FilterFactory2 filterFactory  = new FilterFactoryImpl();
            lineSymb.getStroke().setWidth(filterFactory.literal(size));

            visitor = new UomRescaleStyleVisitor(scaleMetersToPixel);

            lineSymb.accept(visitor);
            LineSymbolizer rescaledLineSymb = (LineSymbolizer) visitor.getCopy();
View Full Code Here

Examples of org.geotools.filter.FilterFactoryImpl

            StyleBuilder styleBuilder = new StyleBuilder();

            PolygonSymbolizerImpl polySymb = (PolygonSymbolizerImpl) styleBuilder.createPolygonSymbolizer();
            polySymb.setUnitOfMeasure(uom);
           
            FilterFactory2 filterFactory  = new FilterFactoryImpl();
            polySymb.getStroke().setWidth(filterFactory.literal(size));

            visitor = new UomRescaleStyleVisitor(scaleMetersToPixel);

            polySymb.accept(visitor);
            PolygonSymbolizer rescaledPolySymb = (PolygonSymbolizer) visitor.getCopy();
View Full Code Here

Examples of org.geotools.filter.FilterFactoryImpl

     */
    @Test
    public void toFilterUsesProvidedFilterFactory() throws Exception {
        final boolean[] called = { false };
       
        FilterFactory ff = new FilterFactoryImpl() {
                public PropertyName property(String propName) {
                    called[0] = true;

                    return super.property(propName);
                }
View Full Code Here

Examples of org.geotools.filter.FilterFactoryImpl

     */
    @Test
    public void toExpressionUsesProvidedFilterFactory() throws Exception {
        final boolean[] called = { false };
       
        FilterFactory ff = new FilterFactoryImpl() {
                public PropertyName property(String propName) {
                    called[0] = true;

                    return super.property(propName);
                }
View Full Code Here

Examples of org.geotools.filter.FilterFactoryImpl

      }
     
      DataStore ds = new MemoryDataStore(mm);
      FeatureCache cache = new GridFeatureCache(ds.getFeatureSource(featureType.getTypeName()), 4, 4, MemoryStorage.createInstance());
     
      FilterFactory ff = new FilterFactoryImpl();
      Filter f1 = ff.bbox("the_geom", 0, 0, 4.4, 4.4, DefaultEngineeringCRS.CARTESIAN_2D.toString());
      Envelope e1 = new Envelope(0, 4.4, 0, 4.4);
     
      Filter f2 = ff.bbox("the_geom", 0, 4.6, 4.4, 8.5, DefaultEngineeringCRS.CARTESIAN_2D.toString());
      Envelope e2 = new Envelope(0, 4.4, 4.6, 8.5);
     
      Filter f3 = ff.bbox("the_geom", 4.6, 0, 8.5, 4.4, DefaultEngineeringCRS.CARTESIAN_2D.toString());
      Envelope e3 = new Envelope(4.6, 8.5, 0, 4.4);
     
      Filter f4 = ff.bbox("the_geom", 4.6, 4.6, 8.5, 8.5, DefaultEngineeringCRS.CARTESIAN_2D.toString());
      Envelope e4 = new Envelope(4.6, 8.5, 4.6, 8.5);     

      //there should be two features in each region
      FeatureCollection fc = cache.getFeatures(f1);
      assertEquals(2, fc.size());
View Full Code Here

Examples of org.geotools.filter.FilterFactoryImpl

    double y_min = 0;
    double y_max = 100;

    resetDatasets();

    FilterFactory filterFactory = new FilterFactoryImpl();
    FeatureType ft = rawDataset.getFeatureSource("mycollection")
        .getSchema();
    String localname = ft.getGeometryDescriptor().getLocalName();
    String srs = ft.getGeometryDescriptor().getCoordinateReferenceSystem()
        .toString();

    Filter bb = filterFactory.bbox(localname, x_min, y_min, x_max, y_max,
        srs);

    int cnt = rawDataset.getFeatureSource("mycollection").getFeatures(bb)
        .size();
    assertEquals(numFeatures, rawDataset.getFeatureSource("mycollection")
View Full Code Here

Examples of org.jacorb.notification.filter.FilterFactoryImpl

            {
                _parent.removeChildContainer(_container);
            }
        });

        FilterFactoryImpl servant =
            (FilterFactoryImpl) _container.getComponentInstanceOfType(FilterFactoryImpl.class);

        return FilterFactoryHelper.narrow(servant.activate());
    }
View Full Code Here

Examples of org.jacorb.notification.filter.FilterFactoryImpl

            {
                _parent.removeChildContainer(_container);
            }
        });

        FilterFactoryImpl servant =
            (FilterFactoryImpl) _container.getComponentInstanceOfType(FilterFactoryImpl.class);

        return FilterFactoryHelper.narrow(servant.activate());
    }
View Full Code Here

Examples of org.jacorb.notification.filter.FilterFactoryImpl

            {
                // no operation
            }
        };

        factoryServant_ = new FilterFactoryImpl(getORB(), getPOA(), getConfiguration(), new DefaultFilterFactoryDelegate(container, getConfiguration()));

        factoryServant_.activate();

        factory_ = FilterFactoryHelper.narrow(factoryServant_.activate());
View Full Code Here

Examples of org.jacorb.notification.filter.FilterFactoryImpl

        getPicoContainer().registerComponentInstance(Configuration.class, mockConfiguration_);

        controlConfiguration_.replay();

        // will use our mocked configuration.
        FilterFactoryImpl factoryServant_ = new FilterFactoryImpl(getORB(), getPOA(),
                mockConfiguration_, new DefaultFilterFactoryDelegate(iContainerForTest_, mockConfiguration_));

        String _factoryRef = getORB().object_to_string(factoryServant_.activate());

        FilterFactory _factory = FilterFactoryHelper.narrow(getClientORB().string_to_object(_factoryRef));

        Filter _filter = _factory.create_filter("EXTENDED_TCL");
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.