Processing FIL Norway imagery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
The package is distributed as a Python wheel-file. Install using pip: | 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 | python -m pip install c:\path\filnorway_processor-1.0.6-py3-none-any.whl | ||
== Arguments == | |||
Raster specific arguments: | |||
{| class="wikitable" | |||
! style="width: 200px" | Argument | |||
!Description | |||
|- | |||
|<code>-f, --format</code> | |||
|Output format. Should be <code>gpkg</code> or <code>mbtiles</code>. Default is <code>gpkg</code> | |||
|- | |||
| <code>-nd, --nodata</code> | |||
|Pixel value to make transparent in the completed GeoPackage. Example: <code>0 0 0</code> | |||
|- | |||
|<code>-tf, --tile_format</code> | |||
|Image format for saving tiles. Should be one of <code>AUTO, JPEG, PNG, PNG8, WEBP</code> | |||
|- | |||
|<code>-q, --quality</code> | |||
|Quality setting for compressed tiles (JPEG and WEBP). Should be in the range <code>1-100</code> | |||
|- | |||
| <code>-scl, --scalefactor</code> | |||
|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). | |||
|- | |||
|<code>--defrag</code> | |||
|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. | |||
|} |
Revision as of 12:56, 7 May 2025
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. |