Producing GeoPackages with massivegeopackage: Difference between revisions
No edit summary  | 
				 (→)  | 
				||
| Line 11: | Line 11: | ||
<pre>python -m pip install c:\path\massivegeopackage-1.3.0-py3-none-any.whl</pre>  | <pre>python -m pip install c:\path\massivegeopackage-1.3.0-py3-none-any.whl</pre>  | ||
== Usage ==  | == Usage ==  | ||
The package consists of two separate modules:   | The package consists of two separate modules: <code>raster</code> and <code>elevation</code>. After installation, the modules can be run with the commands:  | ||
<pre>python -m massivegeopackage.raster</pre>  | <pre>python -m massivegeopackage.raster</pre>  | ||
Revision as of 14:45, 4 March 2021
Massivegeopackage is a Python package for building a GeoPackage from very large raster or elevation datasets.
The core GDAL tools gdalwarp, gdal_translate and gdaladdo seem to struggle with mosaicing very large raster datasets. When the size of the source dataset is larger than 15-20 GB, processing time seems to increase exponentially. 
This Python package will convert each source file to individual GeoPackages within a common tile matrix. This is done in parallel using the multiprocessing module. Completed files will immediately be queued to be merged into a base GeoPackage. The merging is very efficient because it consists of SQL INSERT statements only - no geoprocessing.
Installation
The package is distributed as a Python wheel-file. Install it using pip:
python -m pip install c:\path\massivegeopackage-1.3.0-py3-none-any.whl
Usage
The package consists of two separate modules: raster and elevation. After installation, the modules can be run with the commands:
python -m massivegeopackage.raster
python -m massivegeopackage.elevation
If the package cannot be installed for whatever reason, it is also possible to unzip the .whl file, and then run the script files directly:
python c:\massivegeopackage-1.3.0-py3-none-any\massivegeopackage\raster.py
python c:\massivegeopackage-1.3.0-py3-none-any\massivegeopackage\elevation.py
Parameters are then provided through input prompts.