Package org.geotools.filter

Examples of org.geotools.filter.FilterFactoryImplNamespaceAware


        Integer atd = (Integer) hints.get(Hints.ASSOCIATION_TRAVERSAL_DEPTH);
        resolveDepth = resolve ? atd==null? 0 : atd  : 0;
        resolveTimeOut = (Integer) hints.get( Hints.RESOLVE_TIMEOUT );

        namespaces = mapping.getNamespaces();
        namespaceAwareFilterFactory = new FilterFactoryImplNamespaceAware(namespaces);
       
        Object includeProps = query.getHints().get(Query.INCLUDE_MANDATORY_PROPS);
        includeMandatory = includeProps instanceof Boolean && ((Boolean)includeProps).booleanValue();
              
        if (mapping.isDenormalised()) {
View Full Code Here


            Expression sourceElement, StepList sourcePath, NamespaceSupport namespaces)
            throws IOException {
        super(idExpression, parentExpression, null, targetXPath, null, isMultiValued, clientProperties);
        this.nestedTargetXPath = sourcePath;
        this.nestedFeatureType = sourceElement;
        this.filterFac = new FilterFactoryImplNamespaceAware(namespaces);
        this.namespaces = namespaces;
        this.isConditional = nestedFeatureType instanceof Function;
    }
View Full Code Here

        } catch (IOException ioe) {
            featureSource = null;
        }
        assertNotNull(featureSource);
        List<Filter> filterList = new ArrayList<Filter>();
        FilterFactory2 ff = new FilterFactoryImplNamespaceAware(
                ((MappingFeatureSource) featureSource).getMapping().getNamespaces());
        Expression property = ff
                .property("gsml:geologicHistory/gsml:GeologicEvent/gsml:eventEnvironment/gsml:CGI_TermValue/gsml:value");
        Filter filter = ff.like(property, "*mid-crustal*");

        filterList.add(filter);
        property = ff.property("gsml:purpose");
        filter = ff.like(property, "*ypical*");
        filterList.add(filter);
        Filter andFilter = ff.and(filterList);

        FeatureCollection<FeatureType, Feature> filteredResults = featureSource
                .getFeatures(andFilter);
        FeatureIterator<Feature> iterator = filteredResults.features();

View Full Code Here

TOP

Related Classes of org.geotools.filter.FilterFactoryImplNamespaceAware

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.