Package org.opengis.filter

Examples of org.opengis.filter.FilterFactory.property()


    }
   
    public void testEquality() throws IOException {
        SimpleFeatureSource fs = dataStore.getFeatureSource(tname("users"));
        FilterFactory ff = dataStore.getFilterFactory();
        Filter filter = ff.equal(ff.property(aname("nick")), ff.literal("LARRY"), true);
        int count = fs.getCount(new Query(tname("users"), filter));
        // we had a case insensitive comparison due to the type, regardless of what we asked in the filter
        assertEquals(1, count);
    }
   
View Full Code Here


    }
   
    public void testLike() throws IOException {
        SimpleFeatureSource fs = dataStore.getFeatureSource(tname("users"));
        FilterFactory ff = dataStore.getFilterFactory();
        Filter filter = ff.like(ff.property(aname("nick")), "*A*");
        int count = fs.getCount(new Query(tname("users"), filter));
        // we had a case insensitive comparison due to the type, so we get two matches
        assertEquals(2, count);
    }

View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testEndedByUnsuported() throws Exception{
     
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      EndedBy filter = ff.endedBy(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testEndsUnsuported() throws Exception{
     
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      Ends filter = ff.ends(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testMeetsUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      Meets filter = ff.meets(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testMetByUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      MetBy filter = ff.metBy(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testOverlappedByUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      OverlappedBy filter = ff.overlappedBy(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testTContainsUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      TContains filter = ff.tcontains(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testTEqualsUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      TEquals filter = ff.tequals(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
View Full Code Here

    @Test (expected=UnsupportedOperationException.class)
    public void testTOverlapsUnsuported() throws Exception{
     
      FilterFactory ff = CommonFactoryFinder.getFilterFactory((Hints) null);
      TOverlaps filter = ff.toverlaps(ff.property("date"), newSampleDate());
     
        FilterToCQL toCQL = new FilterToCQL();
        filter.accept( toCQL, null ).toString();
    }
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.