Examples of GMLConfiguration


Examples of org.geotools.gml3.GMLConfiguration

     * Adds a dependency on {@link GMLConfiguration}
     */
    public OGCConfiguration() {
        super(OGC.getInstance());

        addDependency(new GMLConfiguration());
    }
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

        // schedule the gml schemas to be lazily loaded for any type missing from the above
        // import of prebuilt types

        // GML 3.1
        addSchemas(Schemas.findSchemas(new GMLConfiguration()));
        // GML 3.2
        addSchemas(Schemas.findSchemas(new org.geotools.gml3.v3_2.GMLConfiguration()));

   
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

    /**
     * Parses GML3 without specifying a schema location.
     */
    public static void parseGML3() throws Exception {
        InputStream in = GMLParsing.class.getResourceAsStream( "states.xml");
        GMLConfiguration gml = new GMLConfiguration();
        Parser parser = new Parser(gml);
        parser.setStrict(false);
       
        FeatureCollection features = (FeatureCollection) parser.parse(in);
        FeatureIterator i = features.features();
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

     * Parses GML3 without specifying a schema location, and illusrates the use
     * of the streaming parser.
     */
    public static void streamParseGML3() throws Exception {
        InputStream in = GMLParsing.class.getResourceAsStream( "states.xml");
        GMLConfiguration gml = new GMLConfiguration();
        StreamingParser parser = new StreamingParser( gml, in, SimpleFeature.class );
       
        int nfeatures = 0;
        SimpleFeature f = null;
        while( ( f = (SimpleFeature) parser.parse() ) != null ) {
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

     */
    public static void schemaParseGML3() throws Exception {
        File xml = setSchemaLocation();
        InputStream in = new FileInputStream(xml);
       
        GMLConfiguration gml = new GMLConfiguration();
        Parser parser = new Parser(gml);
        parser.setStrict(false);
       
        FeatureCollection features = (FeatureCollection) parser.parse(in);
        FeatureIterator i = features.features();
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

     * Check that all bindings in GMLConfiguration have a target (XSD name), and that the GML ones
     * have a Java type.
     */
    @SuppressWarnings("unchecked")
    public void testBindingTypes() throws Exception {
        GMLConfiguration configuration = new GMLConfiguration();
        assertEquals(GML.NAMESPACE, configuration.getNamespaceURI());
        Map bindings = configuration.setupBindings();
        for (Object object : bindings.values()) {
            if (object instanceof Class) {
                Class type = (Class) object;
                if (Binding.class.isAssignableFrom(type)) {
                    Constructor c = type.getConstructors()[0];
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

* @source $URL$
*/
public class TestConfiguration extends Configuration {
    public TestConfiguration() {
        super(TEST.getInstance());
        addDependency(new GMLConfiguration());
    }
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

     * @generated
     */    
    public WCSConfiguration() {
       super(WCS.getInstance());
      
       addDependency(new GMLConfiguration());
       addDependency(new OWSConfiguration());
    }
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

           "    </wps:RawDataOutput>" +
           "  </wps:ResponseForm>" +
           "</wps:Execute>";
       
        Document d = postAsDOM( "wps", xml );
        checkValidationErrors(d, new GMLConfiguration());
       
        assertEquals( "gml:Polygon", d.getDocumentElement().getNodeName() );
    }
View Full Code Here

Examples of org.geotools.gml3.GMLConfiguration

    }

    public void write(Object value, OutputStream output, Operation operation)
            throws IOException, ServiceException {
   
        Encoder encoder = new Encoder( new GMLConfiguration() );
        encoder.setEncoding(Charset.forName( getInfo().getGeoServer().getGlobal().getCharset() ));
       
        if ( value instanceof Point ) {
            encoder.encode( value, GML.Point, output );
        }
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.