forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,084 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
build/ | ||
build | ||
data | ||
source/drivers/raster/driver_summary.rst | ||
source/drivers/vector/driver_summary.rst | ||
source/user/configoptions_index_generated.rst | ||
.doxygen_up_to_date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.. _gdal_program: | ||
|
||
================================================================================ | ||
gdal | ||
================================================================================ | ||
|
||
.. versionadded:: 3.11 | ||
|
||
.. only:: html | ||
|
||
Main "gdal" entry point. | ||
|
||
.. Index:: gdal | ||
|
||
Synopsis | ||
-------- | ||
|
||
.. code-block:: | ||
Usage: gdal <COMMAND> | ||
where <COMMAND> is one of: | ||
- convert: Convert a dataset (shortcut for 'gdal raster convert' or 'gdal vector convert'). | ||
- info: Return information on a dataset (shortcut for 'gdal raster info' or 'gdal vector info'). | ||
- pipeline: Execute a pipeline (shortcut for 'gdal vector pipeline'). | ||
- raster: Raster commands. | ||
- vector: Vector commands. | ||
'gdal <FILENAME>' can also be used as a shortcut for 'gdal info <FILENAME>'. | ||
And 'gdal read <FILENAME> ! ...' as a shortcut for 'gdal pipeline <FILENAME> ! ...'. | ||
Examples | ||
-------- | ||
|
||
.. example:: | ||
:title: Getting information on the file :file:`utm.tif` (with JSON output) | ||
|
||
.. code-block:: console | ||
$ gdal info utm.tif | ||
.. example:: | ||
:title: Converting file :file:`utm.tif` to GeoPackage raster | ||
|
||
.. code-block:: console | ||
$ gdal convert utm.tif utm.gpkg | ||
.. example:: | ||
:title: Getting information on all available commands and subcommands as a JSON document. | ||
|
||
.. code-block:: console | ||
$ gdal --json-usage | ||
.. example:: | ||
:title: Getting list of all formats supported by the current GDAL build, as text | ||
|
||
.. code-block:: console | ||
$ gdal --formats | ||
.. example:: | ||
:title: Getting list of all formats supported by the current GDAL build, as JSON. | ||
|
||
.. code-block:: console | ||
$ gdal --formats --json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.. _gdal_convert_command: | ||
|
||
================================================================================ | ||
"gdal convert" command | ||
================================================================================ | ||
|
||
.. versionadded:: 3.11 | ||
|
||
.. only:: html | ||
|
||
Convert a dataset. | ||
|
||
.. Index:: gdal convert | ||
|
||
Acts as a shortcut for :ref:`gdal_raster_convert_subcommand` or | ||
:ref:`gdal_vector_convert_subcommand` depending on the nature of the specified dataset. | ||
|
||
Synopsis | ||
-------- | ||
|
||
.. code-block:: | ||
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 | ||
--progress Display progress bar | ||
Options: | ||
-f, --of, --format, --output-format <OUTPUT-FORMAT> Output format | ||
For all options, run 'gdal raster convert --help' or 'gdal vector convert --help' | ||
Examples | ||
-------- | ||
|
||
.. example:: | ||
:title: Converting file :file:`utm.tif` to GeoPackage raster | ||
|
||
.. code-block:: console | ||
$ gdal convert utm.tif utm.gpkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. _gdal_info_command: | ||
|
||
================================================================================ | ||
"gdal info" command | ||
================================================================================ | ||
|
||
.. versionadded:: 3.11 | ||
|
||
.. only:: html | ||
|
||
Get information on a dataset. | ||
|
||
.. Index:: gdal info | ||
|
||
Acts as a shortcut for :ref:`gdal_raster_info_subcommand` or | ||
:ref:`gdal_vector_info_subcommand` depending on the nature of the specified dataset. | ||
|
||
Synopsis | ||
-------- | ||
|
||
.. code-block:: | ||
Usage: gdal info [OPTIONS] <INPUT> | ||
Return information on a dataset (shortcut for 'gdal raster info' or 'gdal vector info'). | ||
Positional arguments: | ||
-i, --input <INPUT> Input raster, vector or multidimensional raster dataset [required] | ||
Common Options: | ||
-h, --help Display help message and exit | ||
--json-usage Display usage as JSON document and exit | ||
Options: | ||
-f, --of, --format, --output-format <OUTPUT-FORMAT> Output format. OUTPUT-FORMAT=json|text (default: json) | ||
For all options, run 'gdal raster info --help' or 'gdal vector info --help' | ||
Examples | ||
-------- | ||
|
||
.. example:: | ||
:title: Getting information on the file :file:`utm.tif` (with JSON output) | ||
|
||
.. code-block:: console | ||
$ gdal info utm.tif | ||
.. example:: | ||
:title: Getting information on the file :file:`poly.gpkg` (with text output), listing all features | ||
|
||
.. code-block:: console | ||
$ gdal info --format=text --features poly.gpkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.. option:: --co <NAME>=<VALUE> | ||
|
||
Many formats have one or more optional creation options that can be | ||
used to control particulars about the file created. For instance, | ||
the GeoTIFF driver supports creation options to control compression, | ||
and whether the file should be tiled. | ||
|
||
May be repeated. | ||
|
||
The creation options available vary by format driver, and some | ||
simple formats have no creation options at all. A list of options | ||
supported for a format can be listed with the | ||
:ref:`--formats <raster_common_options_formats>` | ||
command line option but the documentation for the format is the | ||
definitive source of information on driver creation options. | ||
See :ref:`raster_drivers` format | ||
specific documentation for legal creation options for each format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. option:: --if <format> | ||
|
||
Format/driver name to be attempted to open the input file(s). It is generally | ||
not necessary to specify it, but it can be used to skip automatic driver | ||
detection, when it fails to select the appropriate driver. | ||
This option can be repeated several times to specify several candidate drivers. | ||
Note that it does not force those drivers to open the dataset. In particular, | ||
some drivers have requirements on file extensions. | ||
|
||
May be repeated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
.. option:: -f, --of, --format, --output-format <OUTPUT-FORMAT> | ||
|
||
Which output raster format to use. Allowed values may be given by | ||
``gdal --formats | grep raster | grep rw | sort`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
.. option:: -f, --of, --format, --output-format <OUTPUT-FORMAT> | ||
|
||
Which output vector format to use. Allowed values may be given by | ||
``gdal --formats | grep vector | grep rw | sort`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.. option:: --oo <NAME>=<VALUE> | ||
|
||
Dataset open option (format specific). | ||
|
||
May be repeated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. option:: --overwrite | ||
|
||
Allow program to overwrite existing target file or dataset. | ||
Otherwise, by default, :program:`gdal` errors out if the target file or | ||
dataset already exists. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. _gdal_raster_command: | ||
|
||
================================================================================ | ||
"gdal raster" command | ||
================================================================================ | ||
|
||
.. versionadded:: 3.11 | ||
|
||
.. only:: html | ||
|
||
Entry point for raster commands | ||
|
||
.. Index:: gdal raster | ||
|
||
Synopsis | ||
-------- | ||
|
||
.. code-block:: | ||
Usage: gdal raster <SUBCOMMAND> | ||
where <SUBCOMMAND> is one of: | ||
- convert: Convert a raster dataset. | ||
- info: Return information on a raster dataset. | ||
Available sub-commands | ||
---------------------- | ||
|
||
- :ref:`gdal_raster_info_subcommand` | ||
- :ref:`gdal_raster_convert_subcommand` | ||
|
||
Examples | ||
-------- | ||
|
||
.. example:: | ||
:title: Getting information on the file :file:`utm.tif` (with JSON output) | ||
|
||
.. code-block:: console | ||
$ gdal raster info utm.tif | ||
.. example:: | ||
:title: Converting file :file:`utm.tif` to GeoPackage raster | ||
|
||
.. code-block:: console | ||
$ gdal raster convert utm.tif utm.gpkg |
Oops, something went wrong.