Package org.opengis.filter.expression

Examples of org.opengis.filter.expression.Literal


    }
   
    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


     *
     * @return PeriodNode
     * @throws CQLException
     */
    public PeriodNode buildPeriodDurationAndDate() throws CQLException {
        Literal date = this.resultStack.popLiteral();

        Literal duration = this.resultStack.popLiteral();

        PeriodNode period = PeriodNode.createPeriodDurationAndDate(duration,
                date, filterFactory);

        return period;
View Full Code Here

     *
     * @return PeriodNode
     * @throws CQLException
     */
    public PeriodNode buildPeriodDateAndDuration() throws CQLException {
        Literal duration = this.resultStack.popLiteral();

        Literal date = this.resultStack.popLiteral();

        PeriodNode period = PeriodNode.createPeriodDateAndDuration(date,
                duration, filterFactory);

        return period;
View Full Code Here

        return dwithin;
    }
   
    public Equals equals(String propertyName, Geometry geometry) {
        PropertyName name = property(propertyName);
        Literal geom = literal(geometry);
       
        return equal( name, geom );
    }
View Full Code Here

       
        // retrieves date and duration of expression
        Result node = this.resultStack.popResult();
        PeriodNode period = (PeriodNode) node.getBuilt();

        Literal begin = period.getBeginning();
        Literal end = period.getEnding();

        // creates and filter firstDate<= property <= lastDate
        Expression property = this.resultStack.popExpression();

        And filter = filterFactory.and(filterFactory.lessOrEqual(begin,
View Full Code Here

            WKTReader reader = new WKTReader();

            Geometry g = reader.read(vividGeom);

            Literal literal = filterFactory.literal(g);

            return literal;
        } catch (com.vividsolutions.jts.io.ParseException e) {
            throw new CQLException(e.getMessage(), geometry, e, this.cqlSource);
        } catch (Exception e) {
View Full Code Here

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

                new Coordinate(maxX, minY), new Coordinate(minX, minY) };
        LinearRing shell = gf.createLinearRing(coords);
        Polygon bbox = gf.createPolygon(shell, null);
        bbox.setUserData(DefaultGeographicCRS.WGS84);

        Literal literal = filterFactory.literal(bbox);

        return literal;
    }
View Full Code Here

    public After buildAfterPeriod()
            throws CQLException {
        Result node = this.resultStack.popResult();
        PeriodNode period = (PeriodNode) node.getBuilt();

        Literal date = period.getEnding();

        Expression property = this.resultStack.popExpression();

        After filter = filterFactory.after(property, date);
View Full Code Here

        return new EqualsImpl(geometry1, geometry2, matchAction );
    }

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

TOP

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

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.