Examples of GetPropertyValueType


Examples of net.opengis.wfs20.GetPropertyValueType

        "   </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

Examples of net.opengis.wfs20.GetPropertyValueType

    @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

Examples of net.opengis.wfs20.GetPropertyValueType

        delegate = new GetFeatureKvpRequestReader(GetFeatureType.class, geoServer, filterFactory);
    }
   
    @Override
    public Object read(Object request, Map kvp, Map rawKvp) throws Exception {
        GetPropertyValueType gpv = (GetPropertyValueType) super.read(request, kvp, rawKvp);
       
        //parse a GetFeature and copy the query
        GetFeatureType gf = Wfs20Factory.eINSTANCE.createGetFeatureType();
        delegate.read(gf, kvp, rawKvp);

        if (gf.getAbstractQueryExpression().isEmpty()) {
            throw new WFSException(gpv, "Request did not specify a query");
        }

        gpv.setAbstractQueryExpression(gf.getAbstractQueryExpression().get(0));
        return gpv;
    }
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.