-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processing][feature] Enhance the GDAL "Vector information" alg and add a new GDAL "Vector information (JSON)" alg #57976
[processing][feature] Enhance the GDAL "Vector information" alg and add a new GDAL "Vector information (JSON)" alg #57976
Conversation
0eda6f2
to
ef196de
Compare
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
@agiudiceandrea A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
@agiudiceandrea |
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 #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 #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 #57945.