diff options
| author | Claude Paroz <claude@2xlibre.net> | 2023-06-28 08:47:42 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-06-29 06:38:56 +0200 |
| commit | 7af455a402bf383575a494243e766d6247fd86a3 (patch) | |
| tree | 94eb0fc2f70bdc2bcf3f81287821490925f4b4b5 /docs | |
| parent | 21e686471598d6c755d93a570de20dc00d8d27f6 (diff) | |
Refs #34572 -- Added missing GDAL_PIXEL_TYPES from GDAL 3.5+.
Check out https://github.com/OSGeo/gdal/blob/6e9103bd5/gcore/gdal.h#L62
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/gis/gdal.txt | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt index eb48b774e1..f46f0978fe 100644 --- a/docs/ref/contrib/gis/gdal.txt +++ b/docs/ref/contrib/gis/gdal.txt @@ -1648,11 +1648,9 @@ blue. .. method:: datatype(as_string=False) The data type contained in the band, as an integer constant between 0 - (Unknown) and 11. If ``as_string`` is ``True``, the data type is - returned as a string with the following possible values: - ``GDT_Unknown``, ``GDT_Byte``, ``GDT_UInt16``, ``GDT_Int16``, - ``GDT_UInt32``, ``GDT_Int32``, ``GDT_Float32``, ``GDT_Float64``, - ``GDT_CInt16``, ``GDT_CInt32``, ``GDT_CFloat32``, and ``GDT_CFloat64``. + (Unknown) and 14. If ``as_string`` is ``True``, the data type is + returned as a string. Check out the "GDAL Pixel Type" column in the + :ref:`datatype value table <gdal-raster-datatype>` for possible values. .. method:: color_interp(as_string=False) @@ -1796,23 +1794,28 @@ Key Default Usage name starts with ``/vsimem/``, the raster is created in GDAL's virtual filesystem. +.. _gdal-raster-datatype: + .. object:: datatype Integer representing the data type for all the bands. Defaults to ``6`` (Float32). All bands of a new raster are required to have the same datatype. The value mapping is: - ===== =============== =============================== + ===== =============== =================================== Value GDAL Pixel Type Description - ===== =============== =============================== - 1 GDT_Byte Eight bit unsigned integer - 2 GDT_UInt16 Sixteen bit unsigned integer - 3 GDT_Int16 Sixteen bit signed integer - 4 GDT_UInt32 Thirty-two bit unsigned integer - 5 GDT_Int32 Thirty-two bit signed integer - 6 GDT_Float32 Thirty-two bit floating point - 7 GDT_Float64 Sixty-four bit floating point - ===== =============== =============================== + ===== =============== =================================== + 1 GDT_Byte 8 bit unsigned integer + 2 GDT_UInt16 16 bit unsigned integer + 3 GDT_Int16 16 bit signed integer + 4 GDT_UInt32 32 bit unsigned integer + 5 GDT_Int32 32 bit signed integer + 6 GDT_Float32 32 bit floating point + 7 GDT_Float64 64 bit floating point + 12 GDT_UInt64 64 bit unsigned integer (GDAL 3.5+) + 13 GDT_Int64 64 bit signed integer (GDAL 3.5+) + 14 GDT_Int8 8 bit signed integer (GDAL 3.7+) + ===== =============== =================================== .. object:: nr_of_bands |
