Package org.vfny.geoserver.wfs

Examples of org.vfny.geoserver.wfs.Query


        baseRequest.setVersion("1.0.0");

        FidFilter filter1 = factory.createFidFilter("rail1.123");
        FidFilter filter2 = factory.createFidFilter("rail2.456");
        FidFilter filter3 = factory.createFidFilter("rail3.789");
        Query query = new Query();
        query.setTypeName("rail1");
        query.addFilter(filter1);
        query.addPropertyName("loc1");
        query.addPropertyName("id1");
        baseRequest.addQuery(query);
        query = new Query();
        query.setTypeName("rail2");
        query.addFilter(filter2);
        query.addPropertyName("loc2");
        query.addPropertyName("id2");
        baseRequest.addQuery(query);
        query = new Query();
        query.setTypeName("rail3");
        query.addFilter(filter3);
        query.addPropertyName("loc3");
        query.addPropertyName("id3");
        baseRequest.addQuery(query);

        // run test      
        assertTrue(runKvpTest(baseRequest, testRequest, true));
    }
View Full Code Here


        LiteralExpression rightExpression = factory.createLiteralExpression(polygon);

        filter.addLeftGeometry(leftExpression);
        filter.addRightGeometry(rightExpression);

        Query query = new Query();
        query.setTypeName("rail");
        query.addFilter(filter);

        FeatureRequest baseRequest = new FeatureRequest();
        baseRequest.setVersion("1.0.0");
        baseRequest.addQuery(query);
View Full Code Here

        String testRequest = "VERSION=1.0.0&" + "SERVICE=WFS&"
            + "REQUEST=GETFEATURE&" + "TYPENAME=rail,roads";

        // make base comparison objects       
        FeatureRequest baseRequest = new FeatureRequest();
        Query query = new Query();
        query.setTypeName("rail");
        baseRequest.addQuery(query);

        query = new Query();
        query.setTypeName("roads");
        baseRequest.addQuery(query);

        baseRequest.setVersion("1.0.0");

        // run test      
View Full Code Here

            + "REQUEST=GETFEATURE&" + "PROPERTYNAME=(loc1,id1)(*)&"
            + "TYPENAME=rail,roads";

        // make base comparison objects       
        FeatureRequest baseRequest = new FeatureRequest();
        Query query = new Query();
        query.setTypeName("rail");
        query.addPropertyName("loc1");
        query.addPropertyName("id1");
        baseRequest.addQuery(query);

        query = new Query();
        query.setTypeName("roads");
        baseRequest.addQuery(query);

        baseRequest.setVersion("1.0.0");

        // run test      
View Full Code Here

        FeatureRequest baseRequest = new FeatureRequest();
        baseRequest.setVersion("1.0.0");

        FidFilter filter = factory.createFidFilter("rail.123");
        FidFilter filter2 = factory.createFidFilter("rail.456");
        Query query = new Query();
        query.setTypeName("rail");
        query.addFilter(filter);
        baseRequest.addQuery(query);
        query = new Query();
        query.setTypeName("rail");
        query.addFilter(filter2);
        baseRequest.addQuery(query);

        // run test      
        assertTrue(runKvpTest(baseRequest, testRequest, true));
    }
View Full Code Here

        FeatureRequest baseRequest = new FeatureRequest();
        baseRequest.setVersion("1.0.0");

        FidFilter filter = factory.createFidFilter("rail1.123");
        FidFilter filter2 = factory.createFidFilter("rail2.456");
        Query query = new Query();
        query.setTypeName("rail1");
        query.addFilter(filter);
        query.addPropertyName("loc1");
        query.addPropertyName("id1");
        baseRequest.addQuery(query);
        query = new Query();
        query.setTypeName("rail2");
        query.addFilter(filter2);
        query.addPropertyName("loc2");
        baseRequest.addQuery(query);
        query = new Query();

        // run test      
        assertTrue(runKvpTest(baseRequest, testRequest, true));
    }
View Full Code Here

        Polygon polygon = new Polygon(outerShell, new PrecisionModel(), 0);
        LiteralExpression rightExpression = factory.createLiteralExpression(polygon);
        filter.addLeftGeometry(leftExpression);
        filter.addRightGeometry(rightExpression);

        Query query = new Query();
        query.setTypeName("rail");
        query.addFilter(filter);
        baseRequest.addQuery(query);

        query = new Query();
        query.setTypeName("roads");
        query.addFilter(filter);
        baseRequest.addQuery(query);

        // run test      
        assertTrue(runKvpTest(baseRequest, testRequest, true));
    }
View Full Code Here

        Polygon polygon = new Polygon(outerShell, new PrecisionModel(), 0);
        LiteralExpression rightExpression = factory.createLiteralExpression(polygon);
        filter.addLeftGeometry(leftExpression);
        filter.addRightGeometry(rightExpression);

        Query query = new Query();
        query.setTypeName("rail");
        query.addFilter(filter);
        query.addPropertyName("loc1");
        query.addPropertyName("id1");
        query.addPropertyName("cat1");
        baseRequest.addQuery(query);

        query = new Query();
        query.setTypeName("roads");
        query.addPropertyName("loc2");
        query.addFilter(filter);
        baseRequest.addQuery(query);

        // run test      
        assertTrue(runKvpTest(baseRequest, testRequest, true));
    }
View Full Code Here

        LiteralExpression rightExpression = factory.createLiteralExpression(polygon);

        //filter.addLeftGeometry(leftExpression);
        filter.addRightGeometry(rightExpression);

        Query query = new Query();
        query.setTypeName("rail");
        query.addFilter(filter);
        baseRequest.addQuery(query);

        // run test      
        assertTrue(runKvpTest(baseRequest, testRequest, true));
    }
View Full Code Here

     * Tests are run via the static methods in this suite.  The tests        *
     * themselves are quite generic, so documentation is minimal.            *
     * ***********************************************************************/
    public void test1() throws Exception {
        // make base comparison objects
        Query query = new Query();
        query.setTypeName("rail");

        FeatureRequest baseRequest = new FeatureRequest();
        baseRequest.addQuery(query);

        // run test
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.wfs.Query

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.