Package net.opengis.wfs20.impl

Examples of net.opengis.wfs20.impl.EnvelopePropertyTypeImpl


            "      </fes:SortBy> " +
            "   </Query> " +
            "</GetFeature> ";
        buildDocument(xml);
       
        GetFeatureType gf = (GetFeatureType) parse();
        assertNotNull(gf);
        assertEquals(ResultTypeType.HITS, gf.getResultType());
       
        assertEquals(1, gf.getAbstractQueryExpression().size());
        QueryType q = (QueryType) gf.getAbstractQueryExpression().get(0);
        assertNotNull(q);
       
        Not f = (Not) q.getFilter();
        assertNotNull(f);
       
View Full Code Here


        "      </wfs:Parameter> " +
        "   </wfs:StoredQuery>" +
        " </wfs:GetFeature>";
        buildDocument(xml);
       
        GetFeatureType gf = (GetFeatureType) parse();
        assertNotNull(gf);
       
        assertEquals(1, gf.getAbstractQueryExpression().size());
       
        StoredQueryType sq = (StoredQueryType) gf.getAbstractQueryExpression().get(0);
        assertEquals(1, sq.getParameter().size());
        ParameterType p = sq.getParameter().get(0);
        assertEquals("AreaOfInterest", p.getName());
        assertNotNull(p.getValue());
        assertTrue(p.getValue().contains("gml:Polygon"));
View Full Code Here

        "   </Query> " +
        " " +
        "</GetFeature>";
        buildDocument(xml);
       
        GetFeatureType gf = (GetFeatureType) parse();
        assertNotNull(gf);
       
        assertEquals(1, gf.getAbstractQueryExpression().size());
        QueryType q = (QueryType) gf.getAbstractQueryExpression().get(0);
        assertNotNull(q);
       
        assertEquals(2, q.getTypeNames().size());
        assertEquals(2, q.getAliases().size());
    }
View Full Code Here

        super(gs, new WFSConfiguration());
    }
   
    @Override
    public boolean canHandle(Operation operation) {
        GetFeatureType request = OwsUtils.parameter(operation.getParameters(), GetFeatureType.class);
        return request != null && request.getResultType() == ResultTypeType.HITS;
    }
View Full Code Here

            "      </fes:Filter> " +
            "   </wfs:Query> " +
            "</wfs:GetFeatureWithLock> ";
        buildDocument(xml);
       
        GetFeatureWithLockType gf = (GetFeatureWithLockType) parse();
        assertNotNull(gf);
       
        assertEquals(BigInteger.valueOf(124), gf.getExpiry());
        assertEquals(AllSomeType.ALL, gf.getLockAction());
       
        assertEquals(1, gf.getAbstractQueryExpression().size());
        QueryType q = (QueryType) gf.getAbstractQueryExpression().get(0);
        assertNotNull(q);
       
        assertEquals(new URI("epsg:4326"), q.getSrsName());
        assertEquals(1, q.getTypeNames().size());
        assertEquals(
View Full Code Here

        "   </wfs:Query> " +
        "</wfs:GetPropertyValue> ";
       
        buildDocument(xml);
       
        GetPropertyValueType gf = (GetPropertyValueType) parse();
        assertNotNull(gf);
        assertEquals("foo", gf.getValueReference());
        QueryType q = (QueryType) gf.getAbstractQueryExpression();
        assertNotNull(q);
       
        assertEquals(new URI("epsg:4326"), q.getSrsName());
        assertEquals(1, q.getTypeNames().size());
        assertEquals(
View Full Code Here

    @Override
    protected void encode(Encoder encoder, Object value, OutputStream output, Operation op)
        throws IOException, ServiceException {

        GetPropertyValueType request = (GetPropertyValueType) op.getParameters()[0];
        QueryType query = (QueryType) request.getAbstractQueryExpression();
        QName typeName = (QName) query.getTypeNames().get(0);
       
        NamespaceInfo ns = gs.getCatalog().getNamespaceByURI(typeName.getNamespaceURI());
       
        encoder.getNamespaces().declarePrefix(ns.getPrefix(), ns.getURI());
View Full Code Here

        assertNotNull(t);
       
        assertEquals(1, t.getAbstractTransactionAction().size());
        assertEquals(1, t.getGroup().size());
       
        InsertType i = (InsertType) t.getAbstractTransactionAction().get(0);
        assertEquals(2, i.getAny().size());
    }
View Full Code Here

        title.setValue("fooTitle");
        sqli.getTitle().add(title);
       
        sqli.getReturnFeatureType().add(new QName("http://foo.org", "fooName", "foo"));
       
        ListStoredQueriesResponseType lsqr = factory.createListStoredQueriesResponseType();
        lsqr.getStoredQuery().add(sqli);

        Document dom = encode(lsqr, WFS.ListStoredQueriesResponse);
       
        Element e = getElementByQName(dom, WFS.StoredQuery);
        assertEquals("fooId", e.getAttribute("id"));
View Full Code Here

    }
   
    public ListStoredQueriesResponseType run(ListStoredQueriesType request) throws WFSException {
       
        Wfs20Factory factory = Wfs20Factory.eINSTANCE;
        ListStoredQueriesResponseType response = factory.createListStoredQueriesResponseType();
       
        for (StoredQuery sq : storedQueryProvider.listStoredQueries()) {
            StoredQueryListItemType item = factory.createStoredQueryListItemType();
            item.setId(sq.getName());
           
            TitleType title = factory.createTitleType();
            title.setValue(sq.getTitle());
            item.getTitle().add(title);
           
            if (!sq.getFeatureTypes().isEmpty()) {
                item.getReturnFeatureType().addAll(sq.getFeatureTypes());   
            }
            else {
                item.getReturnFeatureType().add(new QName(""));
            }
           
            response.getStoredQuery().add(item);
        }

        return response;
    }
View Full Code Here

TOP

Related Classes of net.opengis.wfs20.impl.EnvelopePropertyTypeImpl

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.