Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.PropertyName


                ComplexFeatureConstants.SIMPLE_CONTENT, 1, 1, true, (Object) null);
        return new AttributeImpl(convertedValue, descriptor, null);
    }

    public boolean isComplexType(final StepList attrXPath, final AttributeDescriptor featureType) {
        PropertyName attExp = FF.property(attrXPath.toString());
        Object type = attExp.evaluate(featureType);
        if (type == null) {
            type = attExp.evaluate(featureType);
            throw new IllegalArgumentException("path not found: " + attrXPath);
        }

        AttributeDescriptor node = (AttributeDescriptor) type;
        return node.getType() instanceof ComplexType;
View Full Code Here


            SimpleFeatureSource fs = ds.getFeatureSource("GenStreams");
            assertEquals(pureShapefile, fs.getQueryCapabilities().isOffsetSupported());
            assertTrue(fs.getQueryCapabilities().isReliableFIDSupported());

            PropertyName propertyName = new PropertyName() {
                public String getPropertyName() {
                    return "CAT_ID";
                }

                public Object accept(ExpressionVisitor arg0, Object arg1) {
View Full Code Here

        Geometry[] geometries = {point};
        GeometryCollection geometry = new GeometryCollection(geometries, factory );

        FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);

        PropertyName geomName = ff.property(aname("geo"));
        Literal lit = ff.literal(geometry);
       
        DWithin dwithinGeomFilter  = ((FilterFactory2) ff).dwithin(geomName, lit, distance, unit);
        Query query = new Query(tname("geopoint"), dwithinGeomFilter);
        SimpleFeatureCollection features = dataStore.getFeatureSource(tname("geopoint")).getFeatures(query);
View Full Code Here

     * @return PropertyIsEqualTo
     * @throws CQLException
     */
    public PropertyIsEqualTo buildPropertyExists() throws CQLException {

        PropertyName property = this.resultStack.popPropertyName();

        org.opengis.filter.expression.Expression[] args = new org.opengis.filter.expression.Expression[1];
        args[0] = filterFactory.literal(property);

        Function function = filterFactory.function("PropertyExists", args);
View Full Code Here

  }

  public PropertyName buildSimpleAttribute() throws CQLException {
        // Only retrieve the identifier built before
        String identifier = this.resultStack.popIdentifier();
        PropertyName property = filterFactory.property(identifier);

        return property;
    }
View Full Code Here

            if (r.getNodeType() !=nodeSimpleAttr ) {
                break;
            }

            PropertyName simpleAttribute = this.resultStack.popPropertyName();

            arrayIdentifiers.add(simpleAttribute.getPropertyName());
        }

        // postcondition: array has one or more simple attribute
        StringBuffer attribute = new StringBuffer(100);
        int i = 0;

        for (i = arrayIdentifiers.size() - 1; i > 0; i--) {
            attribute.append(arrayIdentifiers.get(i));
            attribute.append(nodeAttrSeparator);
        }

        attribute.append(arrayIdentifiers.get(i));

        PropertyName property = filterFactory.property(attribute.toString());

        return property;
    }
View Full Code Here

    Literal pattern = this.resultStack.popLiteral();

    Literal geometry = this.resultStack.popLiteral();

    PropertyName property = this.resultStack.popPropertyName();

    FilterFactory2 ff = (FilterFactory2) filterFactory;
    Expression[] args = new Expression[] { property, geometry, pattern };

    Function function = filterFactory.function("relatePattern", args);
View Full Code Here

        double maxY = this.resultStack.popDoubleValue();
        double maxX = this.resultStack.popDoubleValue();
        double minY = this.resultStack.popDoubleValue();
        double minX = this.resultStack.popDoubleValue();

        PropertyName property = this.resultStack.popPropertyName();
        String strProperty = property.getPropertyName();

        org.opengis.filter.spatial.BBOX bbox = filterFactory.bbox(
                strProperty, minX, minY, maxX, maxY, crs);
        return bbox;
    }
View Full Code Here

     */
    public Or buildDuringOrAfter() throws CQLException{

        Period period = this.resultStack.popPeriod();
       
        PropertyName property = this.resultStack.popPropertyName();

        // makes the after filter
        After right = this.filterFactory.after(property, filterFactory.literal(period.getEnding()));
       
        // makes the during filter
View Full Code Here

     */
    public Or buildBeforeOrDuring() throws CQLException{

        Period period = this.resultStack.popPeriod();
       
        PropertyName property = this.resultStack.popPropertyName();

        // makes the after filter
        Before right = this.filterFactory.before(property, filterFactory.literal(period.getBeginning()));
       
        // makes the during filter
View Full Code Here

TOP

Related Classes of org.opengis.filter.expression.PropertyName

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.