Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.PropertyName


    public Crosses crosses(Expression geometry1, Expression geometry2, MatchAction matchAction) {
        return new CrossesImpl(geometry1, geometry2 , matchAction );
    }

    public Disjoint disjoint(String propertyName, Geometry geometry) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return disjoint( name, geom );
    }
View Full Code Here


       
        return disjoint( name, geom );
    }
   
    public Disjoint disjoint(String propertyName, Geometry geometry, MatchAction matchAction) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return disjoint( name, geom, matchAction );
    }
View Full Code Here

        return new DisjointImpl(geometry1, geometry2 );
    }
   
    public DWithin dwithin(String propertyName, Geometry geometry,
            double distance, String units) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return dwithin( name, geom, distance, units );
    }
View Full Code Here

        return dwithin( name, geom, distance, units );
    }
   
    public DWithin dwithin(String propertyName, Geometry geometry, double distance, String units,
            MatchAction matchAction) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return dwithin( name, geom, distance, units, matchAction );
    }
View Full Code Here

    }


    private void testAttributeBetweenDoubleQuotes(final String attSample) throws CQLException {
        PropertyIsLike result;
        PropertyName attResult = null;

        result = (PropertyIsLike) CompilerUtil.parseFilter(this.language, attSample + " LIKE 'abc%'");

        attResult = (PropertyName) result.getExpression();

        String expected = attSample.replace('.', '/');
        expected = expected.substring(1, expected.length()-1);

        String propertyName = attResult.getPropertyName();
    Assert.assertEquals(expected, propertyName);
    }
View Full Code Here

    Assert.assertEquals(expected, propertyName);
    }

    private void testAttribute(final String attSample) throws CQLException {
        PropertyIsLike result;
        PropertyName attResult = null;

        result = (PropertyIsLike) CompilerUtil.parseFilter(this.language, attSample + " LIKE 'abc%'");

        attResult = (PropertyName) result.getExpression();

        final String expected = attSample.replace('.', '/');

        Assert.assertEquals(expected, attResult.getPropertyName());
    }
View Full Code Here

                            new Coordinate(-90.638329, 42.509361),
                            new Coordinate(-89.834618, 42.50346),
                            new Coordinate(-88.071564, 37.51099) }), new LinearRing[] {}) });
            mp.setUserData("http://www.opengis.net/gml/srs/epsg.xml#" + EPSG_CODE);

            PropertyName geometryAttributeExpression = filterFac.property(ft
                    .getGeometryDescriptor().getLocalName());
            PropertyIsNull geomNullCheck = filterFac.isNull(geometryAttributeExpression);
            Query query = new Query(typename, filterFac.not(geomNullCheck), 1,
                    Query.ALL_NAMES, null);
            SimpleFeatureIterator inStore = fs.getFeatures(query).features();
View Full Code Here

        Assert.assertTrue( result instanceof PropertyIsEqualTo);
        PropertyIsEqualTo eq = (PropertyIsEqualTo) result;
       
        Expression expr1 = eq.getExpression1();
        Assert.assertTrue(expr1 instanceof PropertyName);
        PropertyName prop = (PropertyName)expr1;
        Assert.assertEquals(propName, prop.getPropertyName());
       
        Expression expr2 = eq.getExpression2();
        assertFunctionCompositionComplex(expr2);
      
    }
View Full Code Here

        List<PropertyName> properties = new ArrayList<PropertyName>();
       
        NamespaceSupport nsContext = new NamespaceSupport();
        nsContext.declarePrefix("foo", "FooNamespace");
       
        PropertyName fooProp = ff.property("foo", nsContext);
        PropertyName barProp = ff.property("bar", nsContext);
        properties.add(fooProp);
        properties.add(barProp);
       
        query.setProperties(properties);
       
View Full Code Here

        if (childName.equalsIgnoreCase("PropertyName")) {
            try {
              //JD: trim whitespace here
              String value = child.getFirstChild().getNodeValue();
              value = value != null ? value.trim() : value;
                PropertyName attribute = ff.property( value, getNameSpaces(root) );

                //                attribute.setAttributePath(child.getFirstChild().getNodeValue());
                return attribute;
            } catch (IllegalFilterException ife) {
                LOGGER.warning("Unable to build expression: " + ife);
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.