Package org.opengis.filter.spatial

Examples of org.opengis.filter.spatial.Within.evaluate()


        assertTrue(filter.evaluate(testFeature));

        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertFalse(filter.evaluate(testFeature));

        coords = new Coordinate[] {
          new Coordinate(2, 2),
          new Coordinate(6, 0),
View Full Code Here


        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertFalse(filter.evaluate(testFeature));

        coords = new Coordinate[] {
          new Coordinate(2, 2),
          new Coordinate(6, 0),
              new Coordinate(6, 7),
View Full Code Here

      };
        expr2 = new LiteralExpressionImpl(gf.createPolygon(gf.createLinearRing(coords), new LinearRing[0]));
        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertFalse(filter.evaluate(testFeature));
       
        expr2 = new LiteralExpressionImpl(null);
        filter = fac.within(expr2, expr1);
View Full Code Here

        expr2 = new LiteralExpressionImpl(gf.createPolygon(gf.createLinearRing(coords), new LinearRing[0]));
        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertFalse(filter.evaluate(testFeature));
       
        expr2 = new LiteralExpressionImpl(null);
        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
View Full Code Here

       
        expr2 = new LiteralExpressionImpl(null);
        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertFalse(filter.evaluate(testFeature));

  }

    public void testDisjoint() throws Exception {
View Full Code Here

        expr2 = new LiteralExpressionImpl(null);
        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertFalse(filter.evaluate(testFeature));

  }

    public void testDisjoint() throws Exception {
      Coordinate[] coords = new Coordinate[3];
View Full Code Here

        PropertyName expr1 = new AttributeExpressionImpl(testSchema, "testGeometry");
       
        Within filter = fac.within(expr1, expr2);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertTrue(filter.evaluate(testFeature));

        Function function = new GeometryFunction(geom);
        filter = fac.within(expr1, function);
        LOGGER.finer( filter.toString());           
View Full Code Here

       
        Within filter = fac.within(expr1, expr2);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertTrue(filter.evaluate(testFeature));

        Function function = new GeometryFunction(geom);
        filter = fac.within(expr1, function);
        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
View Full Code Here

        assertTrue(filter.evaluate(testFeature));

        Function function = new GeometryFunction(geom);
        filter = fac.within(expr1, function);
        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertTrue(filter.evaluate(testFeature));

        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
View Full Code Here

        Function function = new GeometryFunction(geom);
        filter = fac.within(expr1, function);
        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
        assertTrue(filter.evaluate(testFeature));

        filter = fac.within(expr2, expr1);

        LOGGER.finer( filter.toString());           
        LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
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.