[gdal-dev] Setting unit type for a raster band...

Even Rouault even.rouault at spatialys.com
Tue Jan 11 15:29:25 PST 2022


Le 12/01/2022 à 00:23, Carl Godkin a écrit :
> Hi,
>
> I'm trying to figure out if there's a way to set the unit type for a 
> raster band from any of the application programs. A few seem to copy 
> it from input to output bands, but I would like to assign it from the 
> command line if possible.
>
> I have searched for SetUnitType() and GDALSetRasterUnitType() calls in 
> the GDAL 3.4.0 source and don't see it anywhere but I thought perhaps 
> I'd overlooked something.

python -c "from osgeo import gdal; ds = gdal.Open('my.tif', 
gdal.GA_Update); ds.GetRasterBand(1).SetUnitType('my unit')"


>
> Thanks very much,
>
> carl
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
http://www.spatialys.com
My software is free, but my time generally not.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20220112/1f172f7a/attachment.html>


More information about the gdal-dev mailing list