Package org.geotools.data.aggregate

Examples of org.geotools.data.aggregate.AggregatingDataStoreFactory


        AggregatingDataStore store = (AggregatingDataStore) DataStoreFinder.getDataStore(params);
        List<AggregateTypeConfiguration> configs = new ArrayList<AggregateTypeConfiguration>(store
                .getConfigurations().values());
       
        AggregatingDataStoreFactory factory = new AggregatingDataStoreFactory();
        String xml = factory.encodeConfiguration(configs);
       
        List<AggregateTypeConfiguration> configs2 = factory.parseConfiguration(xml);
        assertEquals(configs, configs2);
    }
View Full Code Here


        @Override
        public List<AggregateTypeConfiguration> getObject() {
            String xml = (String) model.getObject();
            try {
                return new AggregatingDataStoreFactory().parseConfiguration(xml);
            } catch (IOException e) {
                return Collections.emptyList();
            }
        }
View Full Code Here

        }

        @Override
        public void setObject(List<AggregateTypeConfiguration> configs) {
            try {
                String xml = new AggregatingDataStoreFactory().encodeConfiguration(configs);
                model.setObject(xml);
            } catch (IOException e) {
                throw new RuntimeException("Failed to encode the configurations back to xml");
            }
View Full Code Here

        @Override
        public List<AggregateTypeConfiguration> getObject() {
            String xml = (String) model.getObject();
            try {
                return new AggregatingDataStoreFactory().parseConfiguration(xml);
            } catch (IOException e) {
                return Collections.emptyList();
            }
        }
View Full Code Here

        }

        @Override
        public void setObject(List<AggregateTypeConfiguration> configs) {
            try {
                String xml = new AggregatingDataStoreFactory().encodeConfiguration(configs);
                model.setObject(xml);
            } catch (IOException e) {
                throw new RuntimeException("Failed to encode the configurations back to xml");
            }
View Full Code Here

TOP

Related Classes of org.geotools.data.aggregate.AggregatingDataStoreFactory

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.