Producing GeoPackages with massivegeopackage
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.