GDAL-DATASET-COPY(1)
π GDAL-DATASET-COPY β bestie, it's literally just a copy button π
okay so, welcome to the gdal-dataset-copy page from the GDAL manual, bestie. Pull up a chair, grab a strawberry π, and let's talk about copying files.
Added in version 3.12 β so she's new new, freshly added, iconic behavior.
Here's the tea: gdal dataset copy makes a copy of the dataset file(s), and yes, that includes any potential side-car / associated files too. Not me making sure your .aux.xml doesn't get left behind π she brings the whole squad.
β¨ SYNOPSIS β¨
Usage: gdal dataset copy [OPTIONS] <SOURCE> <DESTINATION>
Copy files of a dataset.
Positional arguments:
--source <SOURCE> Source dataset name [required]
--destination <DESTINATION> Destination dataset name [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]
Options:
--overwrite Whether overwriting existing output dataset is allowed
Advanced Options:
-f, --format <FORMAT> Dataset format
Copy files of a dataset. That's the whole assignment. Periodt.
π OPTIONS π
--source <FILENAME>β the source file name or directory name. Like, required, bestie. You cannot skip this one, she's not optional, she's the main character. π--destination <FILENAME>β the destination file name or directory name. Also required. The where-to. The vibe destination. β¨-f,---format <FORMAT>β dataset format. This one is your little helper for when automatic detection is not detecting, yk? Automatic detection said "idk her" and this flag said "I got you." π--overwriteβ allows the program to overwrite an existing target file or dataset. Like, permission to be a lil destructive. Without it, by default,gdalerrors out if the target file or dataset already exists. So no sneaky overwrites, no cap. π
π RETURN STATUS CODE π
She returns status code 0 when it's a success β¨ and non-zero when there's an error. Oh and important: non-blocking errors that get emitted as warnings are considered a successful execution β so if you see warnings but it exited 0, that's not a fail, that's just her being chatty. π«Ά
π¦ EXAMPLES π¦
Example 1: Copy a dataset
$ gdal dataset copy source.tif destination.tif
That's it. That's the example. One line, one copy, absolutely ate. π₯
π AUTHOR π
Even Rouault <even.rouault@spatialys.com> β legend behavior, honestly.
π COPYRIGHT π
1998-2026
fr fr, that's the whole page. No missing flags, no missing warnings, every corner of it documented. iykyk π§
and that's the vibe check, bestie β this was the GDAL-DATASET-COPY(1) page, straight out of the GDAL manual, dated Aug 18, 2026. slay, stay copied, mwah π πΈ
π¦ 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