Esempio n. 1
0
File: gdal.go Progetto: kikht/gdal
// Initialize RAT from color table
func (rat RasterAttributeTable) FromColorTable(ct ColorTable) error {
	err := C.GDALRATInitializeFromColorTable(rat.cval, ct.cval)
	if err != 0 {
		return error(err)
	}

	return nil
}
Esempio n. 2
0
File: gdal.go Progetto: colek42/gdal
// Initialize RAT from color table
func (rat RasterAttributeTable) FromColorTable(ct ColorTable) error {
	return C.GDALRATInitializeFromColorTable(rat.cval, ct.cval).Err()
}