Package org.geotools.gml3.v3_2

Examples of org.geotools.gml3.v3_2.GMLSchema


            }
            else {
              _transaction = Transaction.AUTO_COMMIT;
            }
            _maxWritesInTransaction = maxWritesInTransaction;
            _gmlParser = new Parser(new GMLConfiguration());
            boolean rebuildIndex;

            rebuildIndex = createWriter(_datastore);
            if (rebuildIndex) {
                setupIndex(true);
View Full Code Here


        AppSchemaConfiguration configuration = new AppSchemaConfiguration(
                "urn:cgi:xmlns:CGI:GeoSciML:2.0",
                "http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd", new SchemaResolver());
        Configuration gmlConfiguration = EmfAppSchemaReader.findGmlConfiguration(configuration);
        Assert.assertNotNull(gmlConfiguration);
        Assert.assertEquals(new GMLConfiguration(), gmlConfiguration);
    }
View Full Code Here

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

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

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

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

     * 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

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

     * 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

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

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

TOP

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

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.