Processing FIL Norway imagery

From Maria GDK Wiki
Revision as of 13:20, 7 May 2025 by Mbu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 cells will be processed in a user configurable number of parallel processes. The output is stored as GeoPackages with WEBP compression, and organized by county. These GeoPackages are then used to update the NorwayImageryCompressed product series.

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

Argument Description
--input Input directory containing all FIL Norway ECW files
--fylker Vector dataset with one layer per Norwegian county. Does not have to contain all counties.
--fotodato "Fotodato" dataset with photography dates and coverage included in the delivery. Should be a single file/layer. This is used to clip datasets to valid data areas.
--outpath Output directory.
-q, --quality WEBP quality on the output GeoPackages. Default value: 5
-p, --num_processes Maximum number of parallel processes to use
--debug Enable more detailed log messages

Examples

Display help:

python -m filnorway_processor --help

Process FIL Norway for the entire country using maximum 12 parallel processes:

python -m filnorway_processor --input \\files\filnorway\ecw\ --fotodato \\files\filnorway\fotodato\fotodato_2025_02.shp --fylker c:\data\norway_counties_shapefiles\ --output \\files\filnorway\gpkg -p 12

Process FIL Norway for Oslo county using maximum 12 parallel processes. However, Oslo county only covers 3 cells in the grid, so only 3 parallel processes will actually be used.

python -m filnorway_processor --input \\files\filnorway\ecw\ --fotodato \\files\filnorway\fotodato\fotodato_2025_02.shp --fylker c:\data\norway_counties_shapefiles\oslo.shp --output \\files\filnorway\gpkg -p 12