Package org.locationtech.geogig.geotools.plumbing

Examples of org.locationtech.geogig.geotools.plumbing.ImportOp$FidAndFtOverrideFeature


            try {
                cli.getConsole().println("Importing from shapefile " + shp);

                ProgressListener progressListener = cli.getProgressListener();
                ImportOp command = cli.getGeogig().command(ImportOp.class).setAll(true)
                        .setTable(null).setAlter(alter).setOverwrite(!add)
                        .setDestinationPath(destTable).setDataStore(dataStore)
                        .setFidAttribute(fidAttribute)
                        .setAdaptToDefaultFeatureType(!forceFeatureType);

                // force the import not to use paging due to a bug in the shapefile datastore
                command.setUsePaging(false);

                command.setProgressListener(progressListener).call();

                cli.getConsole().println(shp + " imported successfully.");
            } catch (GeoToolsOpException e) {
                switch (e.statusCode) {
                case NO_FEATURES_FOUND:
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.geotools.plumbing.ImportOp$FidAndFtOverrideFeature

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.