Processing FIL Norway imagery

From Maria GDK Wiki
Revision as of 12:56, 7 May 2025 by Mbu (talk | contribs)
Jump to navigation Jump to search

The biannual delivery of the FIL Norway ECW imagery dataset can be efficiently processed and converted to GeoPackage using the Python package filnorway_processor. This package will split the input according to a custom grid with 32768 x 32768 meters cells. The output is stored as GeoPackages with WEBP compression, and organized by county.

Dependencies

  • GDAL >= 3.8.0 (with ECW driver)

The easiest way to get a Python environment where these dependencies are met, is to install the latest version of QGIS . Included is the OSGeo4W shell, where you can install and use the package.

Installation

The package is distributed as a Python wheel-file. Install using pip:

python -m pip install c:\path\filnorway_processor-1.0.6-py3-none-any.whl

Arguments

Raster specific arguments:

Argument Description
-f, --format Output format. Should be gpkg or mbtiles. Default is gpkg
-nd, --nodata Pixel value to make transparent in the completed GeoPackage. Example: 0 0 0
-tf, --tile_format Image format for saving tiles. Should be one of AUTO, JPEG, PNG, PNG8, WEBP
-q, --quality Quality setting for compressed tiles (JPEG and WEBP). Should be in the range 1-100
-scl, --scalefactor Factor to use when it is neccessary to scale down to 8 bit. The range of values to use from each source band is calculated as (mean ± stddev × scalefactor).
--defrag Increase the page size of the base GeoPackage to avoid fragmentation issues when the file grows very large (several hundred gigabytes). When processing is done, the page size will be changed back to default and VACUUM is run to apply the change and to compact the database.