[processing][feature] Enhance the GDAL "Vector information" alg and add a new GDAL "Vector information (JSON)" alg (Request in QGIS) #9170
Labels
3.40
Processing Alg
(Features of) An algorithm. Use the Help button in the application to find the page.
Milestone
Request for documentation
From pull request qgis/QGIS#57976
Author: @agiudiceandrea
QGIS version: 3.40
[processing][feature] Enhance the GDAL "Vector information" alg and add a new GDAL "Vector information (JSON)" alg
PR Description:
Description
Enhancements of the "Vector information" (
gdal:ogrinfo
) GDAL processing algorithm:The checkbox parameter
ALL_LAYERS
"Enable listing of all layer information",False
by default, is added in order for the layer name to not be added to theogrinfo
command-line so it will output the info of all the layers in the dataset (see also Add parameter to skip layername in gdal:convertformat QGIS#45955).The advanced parameter
EXTRA
"Additional command-line parameters" (optional) is added in order to provide additional command-line options to theogrinfo
command (to be consistent with the "Raster information" (gdal:gdalinfo
) GDAL processing algorithm (see also [processing] allow passing additional command line parameters to GDAL algorithms QGIS#30377).New "Vector information (JSON)" (
gdal:ogrinfojson
) GDAL processing algorithm (only available with GDAL >= 3.7):This algorithm will use the
-json
option of ogrinfo in order to create a JSON file containing the layer or dataset information.It has the same parameters as "Vector information" (
gdal:ogrinfo
), except for the parameterSUMMARY_ONLY
"Summary output only" (-so
option), which is replaced byFEATURES
"Enable listing of features" (-features
option),False
by default.The algorithm output is a JSON file.
I think this new algorithm fixes add -json option in ogrinfo outputs QGIS#57945.
Commits tagged with [need-docs] or [FEATURE]
"[processing][feature] Enhance gdal:ogrinfo - Add gdal:ogrinfojson" "[processing][feature] Add tests for gdal:ogrinfo and gdal:ogrinfojson"
The text was updated successfully, but these errors were encountered: