[gdal-dev] Python syntax for Terragen band::SetUnitType()

Chris English sglish at hotmail.com
Sun Jun 12 13:38:58 EDT 2011


Hi,
What is the proper Python syntax for SetUnitType("m") for Terragen ?
>>> type(dst_ds)<class 'osgeo.gdal.Dataset'>
The dataset (Terragen) exists, and (I think) in order for the MIN/MAXUSERPIXELVALUESto make sense it seems you'd have to SetUnitType() prior to WritingArrayin the same way you'd establish SetGeoTransform()  etc before WriteArray.
dst_ds.SetGeoTransform ~


Thank you for you assistance.chris


 		 	   		  


More information about the gdal-dev mailing list