mil.nga.geopackage.io.GeoPackageProgress Java Examples
The following examples show how to use
mil.nga.geopackage.io.GeoPackageProgress.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GeoPackageManagerImpl.java From geopackage-android with MIT License | 6 votes |
/** * {@inheritDoc} */ @Override public boolean importGeoPackage(String database, InputStream stream, boolean override, GeoPackageProgress progress) { if (progress != null) { try { int streamLength = stream.available(); if (streamLength > 0) { progress.setMax(streamLength); } } catch (IOException e) { Log.w(GeoPackageManagerImpl.class.getSimpleName(), "Could not determine stream available size. Database: " + database, e); } } boolean success = importGeoPackage(database, override, stream, progress); return success; }
Example #2
Source File: GeoPackageViewModel.java From geopackage-mapcache-android with MIT License | 6 votes |
/** * Import a GeoPackage stream * * @param database database name to save as * @param stream GeoPackage stream to import * @param progress progress tracker * @return true if loaded */ public boolean importGeoPackage(String database, InputStream stream, GeoPackageProgress progress){ if(repository.importGeoPackage(database, stream, progress)){ // // Then index any feature tables // List<String> newFeatures = repository.getFeatureTables(database); // if(!newFeatures.isEmpty()){ // for(String tableName : newFeatures){ // indexFeatures(activity, database, tableName); // // } // } regenerateGeoPackageTableList(); return true; } return false; }
Example #3
Source File: GeoPackageViewModel.java From geopackage-mapcache-android with MIT License | 5 votes |
/** * import a geopackage from url. GeoPackageProgress should be an instance of DownloadTask */ public boolean importGeoPackage(String name, URL source, GeoPackageProgress progress){ if(repository.importGeoPackage(name, source, progress)){ regenerateGeoPackageTableList(); return true; } return false; }
Example #4
Source File: GeoPackageRepository.java From geopackage-mapcache-android with MIT License | 4 votes |
/** * import a geopackage from url. GeoPackageProgress should be an instance of DownloadTask */ public boolean importGeoPackage(String name, URL source, GeoPackageProgress progress) { return manager.importGeoPackage(name, source, progress); }
Example #5
Source File: FeatureIndexManager.java From geopackage-android with MIT License | 4 votes |
/** * Set the GeoPackage Progress * * @param progress GeoPackage progress */ public void setProgress(GeoPackageProgress progress) { featureTableIndex.setProgress(progress); featureIndexer.setProgress(progress); rTreeIndexTableDao.setProgress(progress); }
Example #6
Source File: GeoPackageManagerImpl.java From geopackage-android with MIT License | 4 votes |
/** * {@inheritDoc} */ @Override public boolean importGeoPackage(String database, InputStream stream, GeoPackageProgress progress) { return importGeoPackage(database, stream, false, progress); }
Example #7
Source File: GeoPackageManagerImpl.java From geopackage-android with MIT License | 4 votes |
/** * {@inheritDoc} */ @Override public boolean importGeoPackage(String name, URL url, GeoPackageProgress progress) { return importGeoPackage(name, url, false, progress); }
Example #8
Source File: TileGenerator.java From geopackage-android with MIT License | 2 votes |
/** * Set the progress tracker * * @param progress progress tracker */ public void setProgress(GeoPackageProgress progress) { this.progress = progress; }
Example #9
Source File: FeatureIndexManager.java From geopackage-java with MIT License | 2 votes |
/** * Set the GeoPackage Progress * * @param progress * GeoPackage progress */ public void setProgress(GeoPackageProgress progress) { featureTableIndex.setProgress(progress); rTreeIndexTableDao.setProgress(progress); }
Example #10
Source File: RTreeIndexTableDao.java From geopackage-java with MIT License | 2 votes |
/** * Set the progress tracker * * @param progress * progress tracker */ public void setProgress(GeoPackageProgress progress) { this.progress = progress; }
Example #11
Source File: GeoPackageRepository.java From geopackage-mapcache-android with MIT License | 2 votes |
/** * Import a GeoPackage stream * * @param database database name to save as * @param stream GeoPackage stream to import * @param progress progress tracker * @return true if loaded */ public boolean importGeoPackage(String database, InputStream stream, GeoPackageProgress progress) { return manager.importGeoPackage(database, stream, progress); }
Example #12
Source File: FeatureCoreGenerator.java From geopackage-core-java with MIT License | 2 votes |
/** * Set the progress * * @param progress * progress */ public void setProgress(GeoPackageProgress progress) { this.progress = progress; }
Example #13
Source File: FeatureCoreGenerator.java From geopackage-core-java with MIT License | 2 votes |
/** * Get the progress * * @return progress */ public GeoPackageProgress getProgress() { return progress; }
Example #14
Source File: FeatureTableCoreIndex.java From geopackage-core-java with MIT License | 2 votes |
/** * Set the progress tracker * * @param progress * progress tracker */ public void setProgress(GeoPackageProgress progress) { this.progress = progress; }
Example #15
Source File: TileGenerator.java From geopackage-android with MIT License | 2 votes |
/** * Get the progress tracker * * @return progress * @since 1.2.5 */ public GeoPackageProgress getProgress() { return progress; }
Example #16
Source File: RTreeIndexTableDao.java From geopackage-android with MIT License | 2 votes |
/** * Set the progress tracker * * @param progress progress tracker */ public void setProgress(GeoPackageProgress progress) { this.progress = progress; }
Example #17
Source File: FeatureIndexer.java From geopackage-android with MIT License | 2 votes |
/** * Set the progress tracker * * @param progress progress tracker */ public void setProgress(GeoPackageProgress progress) { this.progress = progress; }
Example #18
Source File: GeoPackageManager.java From geopackage-android with MIT License | 2 votes |
/** * Import a GeoPackage file from a URL * * @param name GeoPackage name * @param url url * @param override override flag * @param progress progress tracker * @return true if created successfully */ public boolean importGeoPackage(String name, URL url, boolean override, GeoPackageProgress progress);
Example #19
Source File: GeoPackageManager.java From geopackage-android with MIT License | 2 votes |
/** * Import a GeoPackage file from a URL * * @param name GeoPackage name * @param url url * @param progress progress tracker * @return true if created successfully */ public boolean importGeoPackage(String name, URL url, GeoPackageProgress progress);
Example #20
Source File: GeoPackageManager.java From geopackage-android with MIT License | 2 votes |
/** * Import a GeoPackage stream * * @param database database name to save as * @param stream GeoPackage stream to import * @param override true to override existing * @param progress progress tracker * @return true if created successfully */ public boolean importGeoPackage(String database, InputStream stream, boolean override, GeoPackageProgress progress);
Example #21
Source File: GeoPackageManager.java From geopackage-android with MIT License | 2 votes |
/** * Import a GeoPackage stream * * @param database database name to save as * @param stream GeoPackage stream to import * @param progress progress tracker * @return true if loaded */ public boolean importGeoPackage(String database, InputStream stream, GeoPackageProgress progress);