Package org.geotools.gml3.v3_2

Examples of org.geotools.gml3.v3_2.GMLParsingTest


   
    @Override
    protected void configureContext(MutablePicoContainer container) {
        container.registerComponentInstance(WfsFactory.eINSTANCE);
        container.registerComponentInstance(Wfs20Factory.eINSTANCE);
        container.registerComponentInstance(new XSDIdRegistry());
       
        container.registerComponentImplementation(QueryExpressionTextDelegate.class);
        container.registerComponentImplementation(ParameterParserDelegate.class);
    }
View Full Code Here


        //factories
        container.registerComponentInstance(CoordinateSequenceFactory.class,
            CoordinateArraySequenceFactory.instance());
        container.registerComponentImplementation(GeometryFactory.class);
       
        container.registerComponentInstance(new GML3EncodingUtils());
       
        container.registerComponentInstance(new ArcParameters());

        container.registerComponentInstance(srsSyntax);
    }
View Full Code Here

        super(gf);
    }
   
    @Override
    public Object getProperty(Object object, QName name) throws Exception {
        return new PolygonTypeBinding( gf ).getProperty(object, name);
    }
View Full Code Here

    public void testWithConfiguration() throws Exception {
        if (isOffline()) {
            return;
        }

        TestConfiguration configuration = new TestConfiguration();

        //first parse in test data
        Parser parser = new Parser(configuration);
        SimpleFeatureCollection fc = (SimpleFeatureCollection) parser.parse(TestConfiguration.class
                .getResourceAsStream("test.xml"));
View Full Code Here

        assertTrue(errors.isEmpty());
    }

    public void testEncodeFeatureWithBounds() throws Exception {
        SimpleFeature feature = GML3MockData.feature();
        TestConfiguration configuration  = new TestConfiguration();
        //configuration.getProperties().add( org.geotools.gml2.GMLConfiguration.NO_FEATURE_BOUNDS );
   
        Encoder encoder = new Encoder( configuration );
        Document dom = encoder.encodeAsDOM(feature, TEST.TestFeature );
       
View Full Code Here

        assertEquals( 1, dom.getElementsByTagName("gml:boundedBy").getLength());
    }
   
    public void testEncodeFeatureWithNoBounds() throws Exception {
        SimpleFeature feature = GML3MockData.feature();
        TestConfiguration configuration  = new TestConfiguration();
        configuration.getProperties().add( org.geotools.gml2.GMLConfiguration.NO_FEATURE_BOUNDS );
   
        Encoder encoder = new Encoder( configuration );
        Document dom = encoder.encodeAsDOM(feature, TEST.TestFeature );
       
        assertEquals( 0, dom.getElementsByTagName("gml:boundedBy").getLength());
View Full Code Here

        builder.add(null);
        builder.add(null);

        SimpleFeature feature = (SimpleFeature) builder.buildFeature("fid.1");
       
        TestConfiguration configuration  = new TestConfiguration();
        Encoder encoder = new Encoder( configuration );
        Document dom = encoder.encodeAsDOM(feature, TEST.TestFeature);
        NodeList countList = dom.getElementsByTagName("test:count");
        Node count = countList.item(0);
        assertEquals("true", count.getAttributes().getNamedItem("xs:nil").getTextContent());
View Full Code Here

       
        //add xlink cdependency
        addDependency(new XLINKConfiguration());

        //add smil depenedncy
        addDependency(new SMIL20Configuration());
        addDependency(new SMIL20LANGConfiguration());

        //add parser properties
        getProperties().add(Parser.Properties.PARSE_UNKNOWN_ELEMENTS);
        getProperties().add(Parser.Properties.PARSE_UNKNOWN_ATTRIBUTES);
View Full Code Here

        //add xlink cdependency
        addDependency(new XLINKConfiguration());

        //add smil depenedncy
        addDependency(new SMIL20Configuration());
        addDependency(new SMIL20LANGConfiguration());

        //add parser properties
        getProperties().add(Parser.Properties.PARSE_UNKNOWN_ELEMENTS);
        getProperties().add(Parser.Properties.PARSE_UNKNOWN_ATTRIBUTES);
    }
View Full Code Here

        Schema schema;

        schema = new SMIL20Schema();
        importSchema(schema);

        schema = new SMIL20LANGSchema();
        importSchema(schema);

        schema = new GMLSchema();
        importSchema(schema);
View Full Code Here

TOP

Related Classes of org.geotools.gml3.v3_2.GMLParsingTest

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.