Raster layer zonal aggregation tools can't generate .gpkg correctly.

Issue #1406 resolved
Former user created an issue

Hello, thanks for this great project !

I'm trying to obtain spectral signature over a classified area. To do this i use "Raster layer zonal aggregation" with the following parameters :

raster layer : enmap_berlin.bsq (demo data)

categorized raster layer outputRasterizedCategories (vectorized version of landcover_berlin_polygon.gpkg)

However the algorythm end with this message :

The following layers were not generated correctly. - C:/Production/Teledetection/Data/Traitment_v3/Signature/signature.gpkg You can check the Log Message Panel in the main QGIS window to find more information about the algorithm execution.

QGIS Log Message Panel : 2022-08-13T13:10:10 WARNING Cannot open C:/Production/Teledetection/Data/Processing_v3/Signature/signature.gpkg ().()

EnMAP-BOX version : Version 3.10.1.20220805T142416.master

Comments (9)

  1. Fabian Thiel

    I also get this error. And the geopackage is invalid. But in fact the output table is a semicolon separated csv file.
    The .gpkg file ending just seems wrong here @Andreas Janz ?

  2. Andreas Rabe

    Ah, yes, that is most likely the problem.

    So, for now, as a workaround, just change the file extension to “.csv”

  3. ValP

    Thank you, this workaround works.

    However the spectral information is currently stored in different fields : one attribute per band. Is it possible to add the possibility to create a "profile" field in the .gpkg that would store the spectral signature so that we can then consult it in the spectral library viewer ?

    It would be nice to also add this function to the random point from categorized raster layer tool.

    Sincerely

  4. Andreas Rabe

    It would be nice to also add this function to the random point from categorized raster layer tool.

    Not sure what you mean here? The results are just points. No spectral information.

  5. Log in to comment