Package org.opengis.filter

Examples of org.opengis.filter.PropertyIsEqualTo.accept()


   
    public void testResolvePropertyName() {
        PropertyIsEqualTo f = factory.equal(factory.property( "gml:name" ), factory.literal( "foo"), true );
        assertEquals( "gml:name", f.getExpression1().toString() );
       
        f = (PropertyIsEqualTo) f.accept( new PropertyNameResolvingVisitor(featureType),null);
       
        assertEquals( "name", f.getExpression1().toString() );
    }
}
View Full Code Here


        ls.setUserData(CRS.decode("urn:x-ogc:def:crs:EPSG:6.11.2:4326"));
       
        // make sure a class cast does not occur, see: http://jira.codehaus.org/browse/GEOS-1860
        Function function = ff.function("geometryType", ff.property("geom"));
        PropertyIsEqualTo original = ff.equals(ff.literal("Point"), function);
        Filter clone = (Filter) original.accept(reprojector, null);
        assertNotSame(original, clone);
        assertEquals(original, clone);

        // try the opposite, literal and function
        original = ff.equals(function, ff.literal("Point"));
View Full Code Here

        assertNotSame(original, clone);
        assertEquals(original, clone);

        // try the opposite, literal and function
        original = ff.equals(function, ff.literal("Point"));
        clone = (Filter) original.accept(reprojector, null);
        assertNotSame(original, clone);
        assertEquals(original, clone);
    }
   
    public void testIntersectsWithFunction() throws Exception {
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.