Package org.openstreetmap.josm.io

Examples of org.openstreetmap.josm.io.OsmImporter$OsmImporterData


            String fileStr = (String) fileExp.evaluate(elem, XPathConstants.STRING);
            if (fileStr == null || fileStr.isEmpty()) {
                throw new IllegalDataException(tr("File name expected for layer no. {0}", support.getLayerIndex()));
            }

            OsmImporter importer = new OsmImporter();
            try (InputStream in = support.getInputStream(fileStr)) {
                OsmImporter.OsmImporterData importData = importer.loadLayer(in, support.getFile(fileStr), support.getLayerName(), progressMonitor);

                support.addPostLayersTask(importData.getPostLayerTask());
                return importData.getLayer();
            }
        } catch (XPathExpressionException e) {
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.io.OsmImporter$OsmImporterData

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.