func setDescription(object unsafe.Pointer, desc string) { cDesc := C.CString(desc) defer C.free(unsafe.Pointer(cDesc)) C.GDALSetDescription((C.GDALMajorObjectH)(object), cDesc) }
// Set object description func (object MajorObject) SetDescription(desc string) { cObject := object.cval cDesc := C.CString(desc) defer C.free(unsafe.Pointer(cDesc)) C.GDALSetDescription(cObject, cDesc) }