GDAL-CONVERT(1)
β¨ gdal-convert β bestie, we're converting datasets today π
okay so real talk, this is a page from the GDAL manual set (section 1, the classic command-line girlies). And like, this one is SO new β it says right on the label: Added in version 3.11. So if your GDAL is giving ancient, it's not gonna know her. π
She's basically a β¨shortcutβ¨ β she acts as a stand-in for gdal raster convert or gdal vector convert, depending on the nature of the specified dataset you hand her. Like, she looks at what you gave her and goes "oh bestie, I know exactly which one of these you meant" and picks for you. Main character energy fr fr. π¦
πΈ SYNOPSIS πΈ
Usage: gdal convert [OPTIONS] <INPUT> <OUTPUT>
Convert a dataset (shortcut for 'gdal raster convert' or 'gdal vector convert').
Positional arguments:
-i, --input <INPUT> Input raster, vector or multidimensional raster dataset [required]
-o, --output <OUTPUT> Output raster, vector or multidimensional raster dataset (created by algorithm) [required]
Common Options:
-h, --help Display help message and exit
--json-usage Display usage as JSON document and exit
--config <KEY>=<VALUE> Configuration option [may be repeated]
-q, --quiet Quiet mode (no progress bar or warning message) [not available in pipelines]
Options:
-f, --of, --format, --output-format <OUTPUT-FORMAT> Output format
For all options, run 'gdal raster convert --help' or 'gdal vector convert --help'
π DESCRIPTION π
So, gdal-convert converts a dataset. That's the whole vibe. π
It's a shortcut β it acts on behalf of gdal raster convert or gdal vector convert, depending on the nature of the specified dataset. Basically you don't have to sit there deciding which one applies, she just knows. Not me being spoiled by convenience or whatever. π
Added in version 3.11. (yes I said it twice, it's important, she's a new icon π)
π OPTIONS π
π Positional arguments
-i,--input<INPUT> β the input raster, vector or multidimensional raster dataset. π₯ This one is required, no skipping her bestie, she's the whole point.-o,--output<OUTPUT> β the output raster, vector or multidimensional raster dataset. Heads up: it gets created by the algorithm. Also required. β¨
π§ Common Options
-h,--helpβ show the help message and dip out (exit). π«Ά--json-usageβ show the usage as a JSON document, then exit. Very structured of her. πΈ--config<KEY>=<VALUE> β a configuration option. She says may be repeated, so like, stack 'em if you want, queen. π-q,--quietβ quiet mode: no progress bar, no warning messages. Just vibes and silence. π BUT β it's not available in pipelines, so don't try it there, she will not be participating.
π Options
-f,--of,--format,--output-format<OUTPUT-FORMAT> β set the output format. Four names, one girl. Iconic behaviour honestly. β
For ALL the options, bestie, go rungdal raster convert --helporgdal vector convert --help. She's a shortcut, not the whole encyclopedia. π
β RETURN STATUS CODE β
The program returns status code 0 when it's a success girly, and non-zero when something went wrong. π¨
And lowkey important nuance: non-blocking errors that get emitted as warnings are still considered a successful execution. So yes, she can be a little messy and still count it as a win. Periodt. π
π¦ EXAMPLES π¦
πΈ Example 1: Converting file utm.tif to GeoPackage raster
$ gdal convert utm.tif utm.gpkg
ate. no crumbs. π₯
π AUTHOR π
Even Rouault <even.rouault@spatialys.com> β legend behaviour, we love her, mwah π
πΈ COPYRIGHT πΈ
1998-2026
and that's the whole page bestie!! this was GDAL's GDAL-CONVERT(1) β source/version: GDAL, dated Aug 18, 2026 πβ¨ go forth and convert, you absolute icon, and remember: every option, every flag, every warning stayed exactly where it was, no cap. π«Άπ
π¦ where this page comes from
- alpine 3.24: gdal-doc 3.13.3-r0 Β· MIT
- arch rolling: gdal 3.13.3-6 Β· MIT
- ubuntu stonking: gdal-bin 3.13.3+dfsg-1ubuntu4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms