Package org.geoserver.wfs.xml

Examples of org.geoserver.wfs.xml.FeatureTypeSchemaBuilder$GML32


        VersionedDescribeResults results = (VersionedDescribeResults) value;

        // create the schema
        DescribeFeatureTypeType req = (DescribeFeatureTypeType) describeFeatureType
                .getParameters()[0];
        FeatureTypeSchemaBuilder builder = null;
        if (results.isVersioned()) {
            builder = new VersionedSchemaBuilder(wfs.getGeoServer(), configuration);
        } else {
            builder = new FeatureTypeSchemaBuilder.GML3(wfs.getGeoServer());
        }

        XSDSchema schema = builder.build(results.getFeatureTypeInfo(), req.getBaseUrl());

        // serialize
        schema.updateElement();
        XSDResourceImpl.serialize(output, schema.getElement());
    }
View Full Code Here


        return new OneTimeTestSetup(new WFSXmlTest());
    }

    WFSConfiguration configuration() {
        Catalog catalog = getCatalog();
        FeatureTypeSchemaBuilder sb =
            new FeatureTypeSchemaBuilder.GML3(getGeoServer());
        return new WFSConfiguration(catalog,sb,new WFS(sb));
    }
View Full Code Here

        VersionedDescribeResults results = (VersionedDescribeResults) value;

        // create the schema
        DescribeFeatureTypeType req = (DescribeFeatureTypeType) describeFeatureType
                .getParameters()[0];
        FeatureTypeSchemaBuilder builder = null;
        if (results.isVersioned()) {
            builder = new VersionedSchemaBuilder(wfs.getGeoServer(), configuration);
        } else {
            builder = new FeatureTypeSchemaBuilder.GML3(wfs.getGeoServer());
        }

        XSDSchema schema = builder.build(results.getFeatureTypeInfo(), req.getBaseUrl());

        // serialize
        schema.updateElement();
        XSDResourceImpl.serialize(output, schema.getElement());
    }
View Full Code Here

    public static Test suite() {
        return new OneTimeTestSetup(new WFSXmlTest());
    }

    WFSConfiguration configuration() {
        FeatureTypeSchemaBuilder sb =
            new FeatureTypeSchemaBuilder.GML3(getGeoServer());
        return new WFSConfiguration(getGeoServer(),sb,new WFS(sb));
    }
View Full Code Here

        Service serviceDesc = new Service("wms", null, null, Collections.EMPTY_LIST);
        Operation opDescriptor = new Operation("", serviceDesc, null, new Object[] { gfreq });

        final GeoServer gs = wms.getGeoServer();
               
        FeatureTypeSchemaBuilder sb = new FeatureTypeSchemaBuilder.GML3(gs);
        WFSConfiguration configuration = new WFSConfiguration(gs, sb, new WFS(sb));
       
        GML3OutputFormat format = new GML3OutputFormat(gs, configuration);
        format.write(features, out, opDescriptor);
    }
View Full Code Here

import org.junit.Test;

public class WFSXmlTest extends WFSTestSupport {

    WFSConfiguration configuration() {
        FeatureTypeSchemaBuilder sb =
            new FeatureTypeSchemaBuilder.GML3(getGeoServer());
        return new WFSConfiguration(getGeoServer(),sb,new WFS(sb));
    }
View Full Code Here

TOP

Related Classes of org.geoserver.wfs.xml.FeatureTypeSchemaBuilder$GML32

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.