Examples of WFSConfiguration


Examples of org.geotools.wfs.v2_0.WFSConfiguration

                //TODO: back up the old file in case there is an error during encoding
            }
           
            BufferedOutputStream bout = new BufferedOutputStream(new FileOutputStream(f));
            try {
                Encoder e = new Encoder(new WFSConfiguration());
                e.setRootElementType(WFS.StoredQueryDescriptionType);
                e.encode(query.getQuery(), WFS.StoredQueryDescription, new BufferedOutputStream(bout));
                bout.flush();
            }
            finally {
View Full Code Here

Examples of org.geotools.wfs.v2_0.WFSConfiguration

       
        return loader.findOrCreateDirectory("wfs", "stored_queries");
    }
   
    StoredQuery parseStoredQuery(File file) throws Exception {
        return parseStoredQuery(file, new Parser(new WFSConfiguration()));
    }
View Full Code Here

Examples of org.geotools.wfs.v2_0.WFSConfiguration

import org.geotools.xml.Encoder;

public class HitsOutputFormat extends org.geoserver.wfs.response.HitsOutputFormat {

    public HitsOutputFormat(GeoServer gs) {
        super(gs, new WFSConfiguration());
    }
View Full Code Here

Examples of org.geotools.wfs.v2_0.WFSConfiguration

   
    @Override
    protected void encode(FeatureCollectionResponse hits, OutputStream output, WFSInfo wfs)
            throws IOException {
        hits.setNumberOfFeatures(BigInteger.valueOf(0));
        Encoder e = new Encoder(new WFSConfiguration());
        e.setEncoding(Charset.forName( wfs.getGeoServer().getSettings().getCharset()) );
        e.setSchemaLocation(WFS.NAMESPACE,
            ResponseUtils.appendPath(wfs.getSchemaBaseURL(), "wfs/2.0/wfs.xsd"));
       
        e.encode(hits.getAdaptee(), WFS.FeatureCollection, output);
View Full Code Here

Examples of org.geotools.wfs.v2_0.WFSConfiguration

    }

    @Test
    public void testValidCapabilitiesDocument() throws Exception {
        InputStream in = get("wfs?service=WFS&version=2.0.0&request=getCapabilities");
        Parser p = new Parser(new WFSConfiguration());
        p.setValidating(true);
        p.validate(in);
       
        for (Exception e : (List<Exception>)p.getValidationErrors()) {
            System.out.println(e.getLocalizedMessage());
View Full Code Here

Examples of org.geotools.wfs.v2_0.WFSConfiguration

                    i = sb.indexOf(token, i + token.length());
                }
            }
           
            //parse
            Parser p = new Parser(new WFSConfiguration());
            try {
                QueryType compiled =
                    (QueryType) p.parse(new ByteArrayInputStream(sb.toString().getBytes()));
                list.add(compiled);
            }
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.