Package ch.interlis.ilirepository

Examples of ch.interlis.ilirepository.IliManager


    public static ch.interlis.ili2c.metamodel.TransferDescription compileModel(
            String importModelName) throws Ili2cException,
            IllegalArgumentException {
        ch.interlis.ili2c.metamodel.TransferDescription iliTd = null;

        IliManager manager = new IliManager();
        String repositories[] = new String[] { "http://www.catais.org/models/",
                "http://models.geo.admin.ch/" };
        manager.setRepositories(repositories);

        ArrayList modelNames = new ArrayList();
        modelNames.add(importModelName);

        Configuration config = manager.getConfig(modelNames, 1.0);
        iliTd = Ili2c.runCompiler(config);

        if (iliTd == null) {
            throw new IllegalArgumentException("INTERLIS compiler failed");
        }
View Full Code Here

TOP

Related Classes of ch.interlis.ilirepository.IliManager

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.